Skip to content

Commit

Permalink
Fix typos in policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermyndax committed Mar 27, 2021
1 parent 6ed60e2 commit acd46d2
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -266,37 +266,37 @@ resource "aws_iam_user_policy" "content_sync_policy" {
"waf:GetWebACL",
"waf:ListWebACLs"
],
Resource": "${aws_cloudfront_distribution.site_cloudfront_distribution.arn}"
}
{
"Sid": "BucketStuff",
"Effect": "Allow",
"Action": [
"s3:GetBucketTagging",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::${random_uuid.random_bucket_name.result}"
"Resource": "${aws_cloudfront_distribution.site_cloudfront_distribution.arn}"
},
{
"Sid": "ObjectStuff",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::${random_uuid.random_bucket_name.result}/*",
"arn:aws:s3:::${random_uuid.random_bucket_name.result}"
]
"Sid": "BucketStuff",
"Effect": "Allow",
"Action": [
"s3:GetBucketTagging",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::${random_uuid.random_bucket_name.result}"
},
{
"Sid": "HighLevelStuff",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
}
"Sid": "ObjectStuff",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::${random_uuid.random_bucket_name.result}/*",
"arn:aws:s3:::${random_uuid.random_bucket_name.result}"
]
},
{
"Sid": "HighLevelStuff",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
}
]
}
EOF
Expand Down

0 comments on commit acd46d2

Please sign in to comment.