Skip to content

Best practice for stacks folder to support dual AWS accounts (main + secure) per environment #85

Closed Answered by milldr
trungie asked this question in Essential Support
Discussion options

You must be logged in to vote

You have a few options that depend on your use case and requirements.

1 - Use the existing account architecture

First you could reuse the same accounts. I know you said you need a higher level of separation, but I'll explain this option for reference.

With this design, you could create a new YAML file within your stacks file structure. This would be consistent with other "layers" for each stage and would enforce the same SCP and access per stage for the new resource groups. You could define a common mixin or attributes for all deployments inside these new files. This would create a logical boundary but no physical boundary for the new resources.

That would look something like this:

stacks…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

milldr
Jul 3, 2025
Maintainer Sponsor

You must be logged in to vote
2 replies
@milldr
Comment options

milldr Jul 3, 2025
Maintainer Sponsor

@trungie
Comment options

Answer selected by trungie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants