Glad you found the post helpful and my apologies, saw this just now.
Yes the sample project deploys all environments on the same AWS account, though I have to admit it's not ideal.
We've had the same AWS account setup at my previous project, but we quickly found issues and moved away from it.
Instead we also used separate AWS accounts for each environment just like your team's current setup. Dev and staging are in 1 AWS account, then production is in a separate AWS account (for numerous reasons like security, billing, etc.).
No problem at all! It's interesting that you responded to this message actually as I've recently moved over to a SAM deployment model for the same project that led me to your post.
In the end I used the sam pipeline command to create a Github Actions workflow that deploys to a test aws account and then prod aws account. I've seen better CI/CD pipeline implementation but it gets the job done!
All the best,
Luke.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello Luke,
Glad you found the post helpful and my apologies, saw this just now.
Yes the sample project deploys all environments on the same AWS account, though I have to admit it's not ideal.
We've had the same AWS account setup at my previous project, but we quickly found issues and moved away from it.
Instead we also used separate AWS accounts for each environment just like your team's current setup. Dev and staging are in 1 AWS account, then production is in a separate AWS account (for numerous reasons like security, billing, etc.).
Hey, Jasper.
No problem at all! It's interesting that you responded to this message actually as I've recently moved over to a SAM deployment model for the same project that led me to your post.
In the end I used the
sam pipelinecommand to create a Github Actions workflow that deploys to a test aws account and then prod aws account. I've seen better CI/CD pipeline implementation but it gets the job done!All the best,
Luke.