Created
December 17, 2017 14:57
-
-
Save shanielh/a0264044530174a9d7e895dcf130596c to your computer and use it in GitHub Desktop.
Policies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket", | |
"s3:ListObject", | |
"s3:GetObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::INPUT_BUCKET_NAME", | |
"arn:aws:s3:::INPUT_BUCKET_NAME/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:SimulatePrincipalPolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::ACCOUNT_ID:user/${aws:username}" | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ | |
"arn:aws:s3:::OUTPUT_BUCKET_NAME", | |
"arn:aws:s3:::OUTPUT_BUCKET_NAME/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:SimulatePrincipalPolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::ACCOUNT_ID:user/${aws:username}" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment