We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c341b6d + 32b3588 commit f5fd21dCopy full SHA for f5fd21d
chapter6/part1_s3backend/iam.tf
@@ -39,7 +39,7 @@ data "aws_iam_policy_document" "policy_doc" {
39
}
40
41
statement {
42
- actions = ["s3:GetObject", "s3:PutObject"]
+ actions = ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"]
43
44
resources = [
45
"${aws_s3_bucket.s3_bucket.arn}/*",
@@ -65,4 +65,4 @@ resource "aws_iam_policy" "iam_policy" {
65
resource "aws_iam_role_policy_attachment" "policy_attach" {
66
role = aws_iam_role.iam_role.name
67
policy_arn = aws_iam_policy.iam_policy.arn
68
-}
+}
0 commit comments