Created
December 29, 2020 20:40
-
-
Save guerrerocarlos/99a865f04a0e87bd328d5d24888611be to your computer and use it in GitHub Desktop.
Generic `sls deploy` IAM policy
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": [ | |
"cloudformation:List*", | |
"cloudformation:Get*", | |
"cloudformation:ValidateTemplate", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", | |
"cloudformation:DeleteStack", | |
"cloudformation:Describe*", | |
"cloudformation:UpdateStack" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:Get*", | |
"lambda:List*", | |
"lambda:CreateFunction" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:CreateBucket", | |
"s3:DeleteBucket", | |
"s3:ListBucket", | |
"s3:GetBucketPolicy", | |
"s3:PutBucketPolicy", | |
"s3:ListBucketVersions", | |
"s3:PutAccelerateConfiguration", | |
"s3:GetEncryptionConfiguration", | |
"s3:PutEncryptionConfiguration", | |
"s3:DeleteBucketPolicy" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:AddPermission", | |
"lambda:CreateAlias", | |
"lambda:DeleteFunction", | |
"lambda:InvokeFunction", | |
"lambda:PublishVersion", | |
"lambda:RemovePermission", | |
"lambda:Update*" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudwatch:GetMetricStatistics" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:DeleteLogGroup" | |
], | |
"Resource": [ | |
"*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"logs:PutLogEvents" | |
], | |
"Resource": [ | |
"*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:DescribeLogStreams", | |
"logs:DescribeLogGroups", | |
"logs:FilterLogEvents" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"events:Put*", | |
"events:Remove*", | |
"events:Delete*", | |
"events:DescribeRule" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetPolicy", | |
"iam:GetPolicyVersion", | |
"iam:GetRole", | |
"iam:GetRolePolicy", | |
"iam:ListAttachedRolePolicies", | |
"iam:ListRolePolicies", | |
"iam:ListRoles" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:GET", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"apigateway:DELETE", | |
"apigateway:PATCH" | |
], | |
"Resource": [ | |
"*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment