Currently, I am running a nodejs application with AWS Beanstalk as well as AWS CodeDeploy and CodeBuild. Also, I push to a github repository to start the automation of my CodeDeploy pipeline.
What is the best / cleanest strategy to have a staging environment be pushed to first, and if all tests are ok, approve to push it to production?
Thanks, in advance!
This is something that AWS recommend having multiple cross accounts deployment separating Dev and Tools account. Detailed blog is here.

You can add a Manual Approval action as last action in DeployToTest stage to guardrail a production deployment.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With