Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 5, 2021
1 parent ebb178c commit 4e9d706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s3-flow-logs/policy_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data "aws_iam_policy_document" "flowlog_s3" {
type = "Service"
identifiers = ["delivery.logs.amazonaws.com"]
}
resources = ["${aws_s3_bucket.flowlog.arn}/*"]
resources = ["${aws_s3_bucket.flowlogs.arn}/*"]
condition {
test = "StringEquals"
variable = "s3:x-amz-acl"
Expand All @@ -22,6 +22,6 @@ data "aws_iam_policy_document" "flowlog_s3" {
type = "Service"
identifiers = ["delivery.logs.amazonaws.com"]
}
resources = [aws_s3_bucket.flowlog.arn]
resources = [aws_s3_bucket.flowlogs.arn]
}
}

0 comments on commit 4e9d706

Please sign in to comment.