Adding missing permission.

Also, force auto_destroy when cleaning up s3.
This commit is contained in:
Patrick MARIE 2022-02-19 17:20:02 +01:00
parent 1425c98072
commit af58173f61
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,11 @@ Permissions required:
* AmazonVPCFullAccess * AmazonVPCFullAccess
* AmazonEKSServicePolicy * AmazonEKSServicePolicy
To save state, those extras are needed:
* AmazonS3FullAccess
* AmazonDynamoDBFullAccess
Required policy: Required policy:
```json ```json

View File

@ -4,6 +4,7 @@ resource "aws_s3_bucket" "terraform_state" {
# lifecycle { # lifecycle {
# prevent_destroy = true # prevent_destroy = true
# } # }
force_destroy = true
versioning { versioning {
enabled = true enabled = true