Created
December 27, 2019 00:29
-
-
Save d3netxer/b1d1a4012d6bf20b910c22d02ee43a80 to your computer and use it in GitHub Desktop.
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": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:Describe*", | |
"cloudformation:List*", | |
"cloudformation:Get*", | |
"cloudformation:CreateStack", | |
"cloudformation:UpdateStack", | |
"cloudformation:DeleteStack" | |
], | |
"Resource": "arn:aws:cloudformation:<region>:<account_no>:stack/teachosm-geosurge-*/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:ValidateTemplate" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ | |
"arn:aws:s3:::teachosm-geosurge*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:CreateBucket", | |
"s3:DeleteBucket", | |
"s3:Get*", | |
"s3:List*", | |
"s3:GetBucketCORS", | |
"s3:PutBucketCORS" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:DescribeLogGroups" | |
], | |
"Resource": "arn:aws:logs:<region>:<account_no>:log-group::log-stream:*" | |
}, | |
{ | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:DeleteLogGroup", | |
"logs:DeleteLogStream", | |
"logs:DescribeLogStreams", | |
"logs:FilterLogEvents" | |
], | |
"Resource": "arn:aws:logs:<region>:<account_no>:log-group:/aws/lambda/teachosm-geosurge-*:log-stream:*", | |
"Effect": "Allow" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetRole", | |
"iam:PassRole", | |
"iam:CreateRole", | |
"iam:DeleteRole", | |
"iam:DetachRolePolicy", | |
"iam:PutRolePolicy", | |
"iam:AttachRolePolicy", | |
"iam:DeleteRolePolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::<account_no>:role/teachosm-geosurge-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:GET", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"apigateway:DELETE" | |
], | |
"Resource": [ | |
"arn:aws:apigateway:<region>::/restapis" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:GET", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"apigateway:PATCH", | |
"apigateway:DELETE" | |
], | |
"Resource": [ | |
"arn:aws:apigateway:<region>::/restapis/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:GetLayerVersion" | |
], | |
"Resource": [ | |
"arn:aws:lambda:<region>:<account_no>:layer:libreoffice:*" | |
] | |
}, | |
{ | |
"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:AddPermission", | |
"lambda:RemovePermission", | |
"lambda:InvokeFunction", | |
"lambda:GetLayerVersion" | |
], | |
"Resource": [ | |
"arn:aws:lambda:*:<account_no>:function:teachosm-geosurge-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:DescribeSecurityGroups", | |
"ec2:DescribeSubnets", | |
"ec2:DescribeVpcs" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"events:Put*", | |
"events:Remove*", | |
"events:Delete*", | |
"events:Describe*" | |
], | |
"Resource": "arn:aws:events::<account_no>:rule/teachosm-geosurge-*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment