Skip to content

Commit f5fd21d

Browse files
authored
Merge pull request #18 from ahamez/patch-1
S3 backend: add capability to delete S3 objects
2 parents c341b6d + 32b3588 commit f5fd21d

File tree

1 file changed

+2
-2
lines changed
  • chapter6/part1_s3backend

1 file changed

+2
-2
lines changed

chapter6/part1_s3backend/iam.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data "aws_iam_policy_document" "policy_doc" {
3939
}
4040

4141
statement {
42-
actions = ["s3:GetObject", "s3:PutObject"]
42+
actions = ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"]
4343

4444
resources = [
4545
"${aws_s3_bucket.s3_bucket.arn}/*",
@@ -65,4 +65,4 @@ resource "aws_iam_policy" "iam_policy" {
6565
resource "aws_iam_role_policy_attachment" "policy_attach" {
6666
role = aws_iam_role.iam_role.name
6767
policy_arn = aws_iam_policy.iam_policy.arn
68-
}
68+
}

0 commit comments

Comments
 (0)