How do I handle multiple AWS accounts in Terraform?

HOW TO -️ October 18, 2021

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.