I've read up on Terraform and using AWS S3 and DynamoDB for sharing state and locking. My problem is that we have multiple AWS accounts, by which I mean multiple sign-in locations like:

Is it better to have separate S3 and DynamoDB instances in each account, or should we have a single location that's used across all of them?

  • We keep it separate. Each account has an S3 and DynamoDB for its state. – myron-semack Oct 11 at 22:32
up vote 1 down vote accepted

The answer is highly dependent on what you put inside it, if the states are only account related I'd go with a separate S2/dynamodb per account, if the states are cross-account then you'd need a central place to record them.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.