ecs-deploy icon indicating copy to clipboard operation
ecs-deploy copied to clipboard

DeployBlueGreenAction class to handle CodeDeploy deployments

Open joaoricardo000 opened this issue 6 years ago • 1 comments

  • Add a new option for ecs deploy function.
  • Code Deploy Application Name --cd-application-name AppECS-service-name
  • If --cd-application-name is given, a DeployBlueGreenAction instance is created to handle the creation and monitoring of the CodeDeploy deployment process.

Example call/output:

$ ecs deploy cluster-name service-name --task task-def-name --image docker_image --cd-application-name AppECS-cd-service-name  
  
Deploying based on task definition: task-def-name:99

Updating task definition
Changed image of container "container-name" to: "docker_image" (was: "old_docker_image")

Creating new task definition revision
Successfully created revision: 100

Updating service

Deployment created: d-LAAKLJFF0
	https://us-east-1.console.aws.amazon.com/codesuite/codedeploy/deployments/d-LAAKLJFF0

Successfully changed task definition to: task-def-name:100

Deploying new task definition..............................................................................
Deployment successful

Deregister task definition revision
Successfully deregistered revision: 99

Related to https://github.com/fabfuel/ecs-deploy/issues/120

joaoricardo000 avatar Oct 18 '19 19:10 joaoricardo000

Anything I can do to get this over the finish line? or, another option would be to have a flag to disable the deploy after updating the task def.

quinn avatar Jun 13 '23 03:06 quinn