Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best strategy for staging and production environments in AWS

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!

like image 894
Rocksmash Avatar asked Oct 20 '25 12:10

Rocksmash


1 Answers

This is something that AWS recommend having multiple cross accounts deployment separating Dev and Tools account. Detailed blog is here.

enter image description here

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

enter image description here

like image 88
shariqmaws Avatar answered Oct 22 '25 01:10

shariqmaws



Donate For Us

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