Skip to content
Snippets Groups Projects
Unverified Commit bf29d04e authored by iuri aranda's avatar iuri aranda Committed by GitHub
Browse files

Allow s3:DeleteObject on tf state bucket (#10)

Otherwise we cannot delete a terraform workspace.
As it is a versioned bucket and the iam policy doesn't give s3:DeleteObjectVersion permissions, all deleted state files will remain in the bucket as old versions.
parent ff93e0a5
Branches
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ data "aws_iam_policy_document" "tf" {
actions = [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
]
resources = ["${aws_s3_bucket.state.arn}/*"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment