Created
September 27, 2021 17:49
-
-
Save bdiasti/65953cb13b63daf4be62166d26435618 to your computer and use it in GitHub Desktop.
This file contains 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": "2008-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::<NOME-BUCKET>/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::XXXXXXXX:role/service-role/lambda-origin-response-role-XXXXX" | |
}, | |
"Action": "s3:PutObject", | |
"Resource": "arn:aws:s3:::<NOME-BUCKET>/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::XXXXXXXX:role/service-role/lambda-origin-response-role-XXXXX" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::<NOME-BUCKET>/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::XXXXXXXX:role/service-role/viewer-request-lambda-role-XXXXX" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::<NOME-BUCKET>/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::XXXXXXXX:role/service-role/viewer-request-lambda-role-XXXXX" | |
}, | |
"Action": "s3:PutObject", | |
"Resource": "arn:aws:s3:::<NOME-BUCKET>/*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment