mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 19:52:49 -06:00
Merge pull request #4730 from leeprovoost/master
provider/aws: Fix principal in cloud trail bucket policy docs
This commit is contained in:
commit
0a2966d26d
@ -29,14 +29,18 @@ resource "aws_s3_bucket" "foo" {
|
|||||||
{
|
{
|
||||||
"Sid": "AWSCloudTrailAclCheck",
|
"Sid": "AWSCloudTrailAclCheck",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Principal": "*",
|
"Principal": {
|
||||||
|
"Service": "cloudtrail.amazonaws.com"
|
||||||
|
},
|
||||||
"Action": "s3:GetBucketAcl",
|
"Action": "s3:GetBucketAcl",
|
||||||
"Resource": "arn:aws:s3:::tf-test-trail"
|
"Resource": "arn:aws:s3:::tf-test-trail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Sid": "AWSCloudTrailWrite",
|
"Sid": "AWSCloudTrailWrite",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Principal": "*",
|
"Principal": {
|
||||||
|
"Service": "cloudtrail.amazonaws.com"
|
||||||
|
},
|
||||||
"Action": "s3:PutObject",
|
"Action": "s3:PutObject",
|
||||||
"Resource": "arn:aws:s3:::tf-test-trail/*",
|
"Resource": "arn:aws:s3:::tf-test-trail/*",
|
||||||
"Condition": {
|
"Condition": {
|
||||||
|
Loading…
Reference in New Issue
Block a user