Skip to content

Instantly share code, notes, and snippets.

@bmwitcher
Created November 21, 2020 18:23
Show Gist options
  • Save bmwitcher/839cc0b7de3e75880fbaf5663a974848 to your computer and use it in GitHub Desktop.
Save bmwitcher/839cc0b7de3e75880fbaf5663a974848 to your computer and use it in GitHub Desktop.
Give Lambda permission to execute listed functions
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"ec2:Start*",
"ec2:Stop*"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment