Created
April 16, 2019 14:14
-
-
Save niradler/7e28fa673c2e9afbcdb915c32ac5aebb to your computer and use it in GitHub Desktop.
serverless policy for aws sort by resource type.
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": [ | |
{ | |
"Sid": "edit0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"lambda:List*", | |
"lambda:Get*", | |
"lambda:PutFunctionConcurrency", | |
"lambda:InvokeFunction", | |
"lambda:AddPermission", | |
"lambda:DeleteFunction", | |
"lambda:PublishVersion", | |
"lambda:RemovePermission", | |
"lambda:CreateAlias", | |
"lambda:Update*" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit1", | |
"Effect": "Allow", | |
"Action": [ | |
"logs:DescribeLogGroups", | |
"logs:DescribeLogStreams", | |
"logs:FilterLogEvents", | |
"logs:DeleteLogGroup", | |
"logs:CreateLogStream", | |
"logs:PutLogEvents", | |
"logs:CreateLogGroup" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit2", | |
"Effect": "Allow", | |
"Action": ["route53:ListHostedZones"], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit3", | |
"Effect": "Allow", | |
"Action": [ | |
"ssm:GetParameters", | |
"ssm:GetParameter", | |
"ssm:PutParameter", | |
"ssm:DescribeParameters", | |
"ssm:DescribeDocumentParameters", | |
"ssm:GetParametersByPath" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit4", | |
"Effect": "Allow", | |
"Action": ["cloudwatch:GetMetricStatistics"], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit5", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObjectVersion", | |
"s3:ListBucketVersions", | |
"s3:CreateBucket", | |
"s3:ListBucket", | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject", | |
"s3:GetBucketLocation", | |
"s3:DeleteBucket", | |
"s3:GetObjectVersion", | |
"s3:PutEncryptionConfiguration", | |
"s3:ListObjects" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit6", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:PassRole", | |
"iam:GetRole", | |
"iam:CreateRole", | |
"iam:DeleteRole", | |
"iam:PutRolePolicy", | |
"iam:DeleteRolePolicy" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit7", | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:PreviewStackUpdate", | |
"cloudformation:List*", | |
"cloudformation:ValidateTemplate", | |
"cloudformation:Get*", | |
"cloudformation:CreateStack", | |
"cloudformation:DeleteStack", | |
"cloudformation:UpdateStack", | |
"cloudformation:CreateUploadBucket", | |
"cloudformation:Describe*" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit8", | |
"Effect": "Allow", | |
"Action": [ | |
"events:Delete*", | |
"events:ListRuleNamesByTarget", | |
"events:ListTagsForResource", | |
"events:ListRules", | |
"events:DescribeRule", | |
"events:ListTargetsByRule", | |
"events:Put*", | |
"events:Remove*" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit9", | |
"Effect": "Allow", | |
"Action": ["apigateway:POST", "apigateway:GET"], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit10", | |
"Effect": "Allow", | |
"Action": ["kinesis:*"], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "edit10", | |
"Effect": "Allow", | |
"Action": ["sqs:*"], | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment