Last active
September 1, 2020 22:55
-
-
Save wesleymonaro/59b008884ddd9ec3eaf52d2e3f9bfaa4 to your computer and use it in GitHub Desktop.
Configuração de policy para execução de lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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