Skip to content

Instantly share code, notes, and snippets.

@wesleymonaro
Last active September 1, 2020 22:55
Show Gist options
  • Save wesleymonaro/59b008884ddd9ec3eaf52d2e3f9bfaa4 to your computer and use it in GitHub Desktop.
Save wesleymonaro/59b008884ddd9ec3eaf52d2e3f9bfaa4 to your computer and use it in GitHub Desktop.
Configuração de policy para execução de lambda
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeRegions",
"ec2:DescribeInstances",
"ec2:DescribeRegions",
"ec2:StartInstances",
"ec2:StopInstances",
"rds:DescribeDBInstances",
"rds:StopDBInstance",
"rds:StartDBInstance",
"rds:ListTagsForResource"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment