Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 15, 2021
1 parent 158c55d commit 66fef81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudtrail/data.policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "aws_iam_policy_document" "cloudtrail_s3" {
statement {
sid = "AWSCloudTrailWrite"
effect = "Allow"
resources = ["${aws_s3_bucket.cloudtrail.arn}/*"]
resources = ["${aws_s3_bucket.this.arn}/*"]
actions = ["s3:PutObject"]

principals {
Expand All @@ -20,7 +20,7 @@ data "aws_iam_policy_document" "cloudtrail_s3" {
statement {
sid = "AWSCloudTrailAclCheck"
effect = "Allow"
resources = [aws_s3_bucket.cloudtrail.arn]
resources = [aws_s3_bucket.this.arn]
actions = ["s3:GetBucketAcl"]

principals {
Expand Down

0 comments on commit 66fef81

Please sign in to comment.