You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully added backend.tf file with all resources and authorizations that allow my IAM user (from the profile) used by TF to be able to write/read to S3 and DynamoDB and use the remote backend for storing the state of the main root module.
Now, I'm looking to expand and start creating resources in the environment root module, and immediately there's a question:
Where do the state files of each workspace within environments (dev,stage,prod) live?
Should they be part of the main account (subdirectories inside project-name-main-backend S3 Bucket), or should they be in the same structure but in their own accounts (project-name-INSERT_ENV_HERE-backend S3 buckets).
Apologies for the slow response. When using workspaces, it uses the same backend configuration, but with an additional folder name layer to keep the state files between workspaces separate. I added tutorials that cover both the initial bootstrapping, and then how to expand it to use multiple accounts with workspaces - see the updated readme, I've added links in there.
I have successfully added backend.tf file with all resources and authorizations that allow my IAM user (from the profile) used by TF to be able to write/read to S3 and DynamoDB and use the remote backend for storing the state of the main root module.
Now, I'm looking to expand and start creating resources in the environment root module, and immediately there's a question:
Where do the state files of each workspace within environments (dev,stage,prod) live?
Should they be part of the main account (subdirectories inside project-name-main-backend S3 Bucket), or should they be in the same structure but in their own accounts (project-name-INSERT_ENV_HERE-backend S3 buckets).
Any thoughts on the matter?
Here's my main/backend.tf for reference:
The text was updated successfully, but these errors were encountered: