Last active
March 1, 2017 22:38
-
-
Save findchris/20bd3f62c652bacc8371c4755821fc3d to your computer and use it in GitHub Desktop.
serveless policy
This file contains hidden or 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": [ | |
{ | |
"Action": [ | |
"cloudformation:DescribeStackResources", | |
"cloudformation:CreateStack", | |
"cloudformation:DescribeStackEvents", | |
"cloudformation:DescribeStackResource", | |
"cloudformation:UpdateStack", | |
"cloudformation:DescribeStacks", | |
"cloudformation:DeleteStack" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:cloudformation:us-east-1:435397005020:stack/roombot-production/*" | |
}, | |
{ | |
"Action": [ | |
"apigateway:POST", | |
"apigateway:GetResources", | |
"apigateway:GET", | |
"apigateway:PUT", | |
"apigateway:DELETE" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:apigateway:us-east-1::/restapis" | |
}, | |
{ | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:DescribeLogStreams", | |
"logs:DescribeLogGroups", | |
"logs:FilterLogEvents", | |
"logs:PutLogEvents" | |
], | |
"Resource": "*", | |
"Effect": "Allow" | |
}, | |
{ | |
"Action": [ | |
"dynamodb:*" | |
], | |
"Resource": "arn:aws:dynamodb:us-east-1:*:*", | |
"Effect": "Allow" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:GetObjectVersion", | |
"s3:PutObject", | |
"s3:DeleteObject", | |
"s3:CreateBucket", | |
"s3:DeleteBucket", | |
"s3:ListBucket", | |
"s3:ListBucketVersions", | |
"s3:GetBucketVersioning", | |
"s3:PutBucketVersioning", | |
"s3:GetBucketLocation" | |
], | |
"Resource": [ | |
"arn:aws:s3:::roombot-production-*/*", | |
"arn:aws:s3:::roombot-production-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:GetFunction", | |
"lambda:CreateFunction", | |
"lambda:DeleteFunction", | |
"lambda:UpdateFunctionConfiguration", | |
"lambda:UpdateFunctionCode", | |
"lambda:ListVersionsByFunction", | |
"lambda:PublishVersion", | |
"lambda:CreateAlias", | |
"lambda:DeleteAlias", | |
"lambda:UpdateAlias", | |
"lambda:GetFunctionConfiguration", | |
"lambda:InvokeFunction" | |
], | |
"Resource": [ | |
"arn:aws:lambda:us-east-1:435397005020:function:roombot-production-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:CreateRole", | |
"iam:DeleteRole", | |
"iam:GetRole", | |
"iam:PassRole", | |
"iam:DeleteRolePolicy", | |
"iam:PutRolePolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::435397005020:role/roombot-production-us-east-1-lambdaRole" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudwatch:GetMetricStatistics" | |
], | |
"Resource": [ | |
"*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment