Skip to content

Instantly share code, notes, and snippets.

@AntoniusGolly
Last active March 18, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntoniusGolly/9365fb87b94d404a4c559bf56191dde4 to your computer and use it in GitHub Desktop.
Save AntoniusGolly/9365fb87b94d404a4c559bf56191dde4 to your computer and use it in GitHub Desktop.
Basic policy for lambda function execution with rights to access S3 bucket and logs
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::__BUCKET__NAME__/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment