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
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: