{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AWSCloudTrailAclCheck",
"Effect": "Allow",
"Principal": {
"Service": "cloudtrail.amazonaws.com"
},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::dp-ctlog-Your_Account_Id"
},
{
"Sid": "AWSCloudTrailWrite",
"Effect": "Allow",
"Principal": {
"Service": "cloudtrail.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::dp-ctlog-Your_Account_Id/AWSLogs/Your_Account_Id/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
},
{
"Sid": "CrossAccountAccess",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::PARTNER_AWS_ACCOUNT_ID:root"
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:GetBucketAcl",
"s3:PutObjectAcl",
"s3:GetObject*",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::dp-ctlog-Your_Account_Id",
"arn:aws:s3:::dp-ctlog-Your_Account_Id/*"
]
}
]
}