Skip to content

Instantly share code, notes, and snippets.

@fabiojwalter
Created June 23, 2021 00:42
Show Gist options
  • Save fabiojwalter/33720af4e8e77d2ccedb25dfb389ad86 to your computer and use it in GitHub Desktop.
Save fabiojwalter/33720af4e8e77d2ccedb25dfb389ad86 to your computer and use it in GitHub Desktop.
AWS Policy - Lambda - EC2 Start/Stop
{
"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