Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Terraform/OpenTofu state resources #60

Open
marcelovilla opened this issue Sep 19, 2024 · 0 comments
Open

Create Terraform/OpenTofu state resources #60

marcelovilla opened this issue Sep 19, 2024 · 0 comments

Comments

@marcelovilla
Copy link
Contributor

In order to store the state for the Terraform/OpenTofu configuration, an S3 bucket and a DynamoDB table are needed. I suggest we create a pair of these resources for each environment we want to have (i.e., staging and production) so that we can maintain one state per environment.

Currently, these are being created for the staging environment as part of the shared resources. However, we should separate the creation of these in another bootstrap stage, as otherwise we'll run into circular dependency issues.

Thus, after implementing this, anyone trying to setup the infrastructure from scratch will have to create the state resources first before the actual infrastructure. For the bootstrap stage, we can version the Terraform/OpenTofu state within this repo as it's something that won't be updated at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant