mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
980 B
Plaintext
35 lines
980 B
Plaintext
5 years ago
|
{
|
||
|
"Version": "2012-10-17",
|
||
|
"Statement": [
|
||
|
{
|
||
|
"Sid": "CloudTrailCheckAcl",
|
||
|
"Effect": "Allow",
|
||
|
"Principal": { "Service": "cloudtrail.amazonaws.com" },
|
||
|
"Action": "s3:GetBucketAcl",
|
||
|
"Resource": "arn:aws:s3:::{{ bucket_name }}",
|
||
|
},
|
||
|
{
|
||
|
"Sid": "CloudTrailWriteLogs",
|
||
|
"Effect": "Allow",
|
||
|
"Principal": { "Service": "cloudtrail.amazonaws.com" },
|
||
|
"Action": "s3:PutObject",
|
||
|
"Resource": [
|
||
|
"arn:aws:s3:::{{ bucket_name }}/AWSLogs/{{ aws_caller_info.account }}/*",
|
||
|
"arn:aws:s3:::{{ bucket_name }}/{{ cloudtrail_prefix }}*/AWSLogs/{{ aws_caller_info.account }}/*"
|
||
|
],
|
||
|
"Condition": {
|
||
|
"StringEquals": {
|
||
|
"s3:x-amz-acl": "bucket-owner-full-control"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"Sid": "AnsibleTestManage",
|
||
|
"Effect": "Allow",
|
||
|
"Principal": { "AWS": "{{ aws_caller_info.arn }}" },
|
||
|
"Action": "*",
|
||
|
"Resource": "arn:aws:s3:::{{ bucket_name }}"
|
||
|
}
|
||
|
]
|
||
|
}
|