Comments on How to Manage Terraform State in an AWS S3 Bucket
In this article, we will see what a Terraform state is and how to manage it on an S3 Bucket. We will also see what "lock" is in Terraform and how to implement it. To implement this, we need to create an S3 Bucket and a DynamoDB Table on AWS.
1 Comment(s)
Comments
Hi,
Thanks, this was useful
After doing some more digging I've found that:
* The bucket does not need to be public and does not need a policy.
* The dynamodb is optional, locking is not required (it might be required in situations where multiple users might be operating terraform at the same time)
* If you are going to do locking It's sort of clumsy to have the dynamodb build in the same config as the infra because once you do "destroy" or remove it from the config it will be gone and so will the locking