Merge pull request #4730 from leeprovoost/master

provider/aws: Fix principal in cloud trail bucket policy docs
This commit is contained in:
James Nugent 2016-01-19 07:45:37 -05:00
commit 0a2966d26d
1 changed files with 6 additions and 2 deletions

View File

@ -29,14 +29,18 @@ resource "aws_s3_bucket" "foo" {
{
"Sid": "AWSCloudTrailAclCheck",
"Effect": "Allow",
"Principal": "*",
"Principal": {
"Service": "cloudtrail.amazonaws.com"
},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::tf-test-trail"
},
{
"Sid": "AWSCloudTrailWrite",
"Effect": "Allow",
"Principal": "*",
"Principal": {
"Service": "cloudtrail.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::tf-test-trail/*",
"Condition": {