aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.34k stars 4.08k forks source link

How to automate "Stop and roll back deployment" #6272

Closed manavalan619 closed 3 years ago

manavalan619 commented 3 years ago

Hi all, currently my node application is deployed on AWS ECS farget and configured the blue-green deployment (CodeDeploy).

Here I give 443 port for production on BG deployment and added application load balancer DNS to my domain name (Say https://sample.com).

Based on the target group's health and ECS healthy status, blue-green deployment calls the "stop and roll back deployment" if any unhealthy occurs. There is a manual option to do this on CodeDeploy page.

Here my question:

I added the process.exit(1) on my node application healthcheck function under the route /health, which means I make a runtime error on the healthcheck function. That lead to 503 Service Temporarily Unavailable and my container exits. At that time how to call the "stop and roll back deployment" automatically. Any approach to do this. Any one could help this.

kdaily commented 3 years ago

Hi @manavalan619,

It looks like you're using a Node application - this repository is for the AWS CLI only. It doesn't seem like you're having an issue with the CLI, so this type of question can be asked at the ASW Developer Forum for ECS.

If you are having a specific issue with the AWS CLI or have a question about a specific command, feel free to open up another issue. Thanks!

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.