Created
March 6, 2018 02:40
-
-
Save jbaxleyiii/b4871a405222d201492ae406b09fb9c1 to your computer and use it in GitHub Desktop.
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:PreviewStackUpdate" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", | |
"cloudformation:DeleteStack", | |
"cloudformation:DescribeStackEvents", | |
"cloudformation:DescribeStackResource", | |
"cloudformation:DescribeStackResources", | |
"cloudformation:UpdateStack", | |
"cloudformation:DescribeStacks" | |
], | |
"Resource": [ | |
"arn:aws:cloudformation:*:*:stack/serverless graphql lambda simple-*/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:Get*", | |
"lambda:List*", | |
"lambda:CreateFunction" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:CreateBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::serverless graphql lambda simple*serverlessdeploymentbucket*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:ListBucket", | |
"s3:DeleteObject", | |
"s3:DeleteBucket", | |
"s3:ListBucketVersions" | |
], | |
"Resource": [ | |
"arn:aws:s3:::serverless graphql lambda simple*serverlessdeploymentbucket*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:AddPermission", | |
"lambda:CreateAlias", | |
"lambda:DeleteFunction", | |
"lambda:InvokeFunction", | |
"lambda:PublishVersion", | |
"lambda:RemovePermission", | |
"lambda:Update*" | |
], | |
"Resource": [ | |
"arn:aws:lambda:*:*:function:serverless graphql lambda simple-*-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:GET", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"apigateway:DELETE" | |
], | |
"Resource": [ | |
"arn:aws:apigateway:*::/restapis*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": [ | |
"arn:aws:iam::*:role/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "kinesis:*", | |
"Resource": [ | |
"arn:aws:kinesis:*:*:stream/serverless graphql lambda simple-*-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "iam:*", | |
"Resource": [ | |
"arn:aws:iam::*:role/serverless graphql lambda simple-*-*-lambdaRole" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "sqs:*", | |
"Resource": [ | |
"arn:aws:sqs:*:*:serverless graphql lambda simple-*-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudwatch:GetMetricStatistics" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream" | |
], | |
"Resource": [ | |
"arn:aws:logs:*:*:*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"logs:PutLogEvents" | |
], | |
"Resource": [ | |
"arn:aws:logs:*:*:*" | |
], | |
"Effect": "Allow" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:DescribeLogStreams", | |
"logs:DescribeLogGroups", | |
"logs:FilterLogEvents" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"events:Put*", | |
"events:Remove*", | |
"events:Delete*" | |
], | |
"Resource": [ | |
"arn:aws:events:*:*:rule/serverless graphql lambda simple-*-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"dynamodb:*" | |
], | |
"Resource": [ | |
"arn:aws:dynamodb:*:*:table/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:CreateBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment