Skip to content

Instantly share code, notes, and snippets.

@bdiasti
Created September 27, 2021 17:49
Show Gist options
  • Save bdiasti/65953cb13b63daf4be62166d26435618 to your computer and use it in GitHub Desktop.
Save bdiasti/65953cb13b63daf4be62166d26435618 to your computer and use it in GitHub Desktop.
{
"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