Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "lambdaFunctionRole": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Principal": {
- "Service": [
- "lambda.amazonaws.com",
- "apigateway.amazonaws.com"
- ]
- },
- "Action": "sts:AssumeRole"
- }
- ]
- },
- "ManagedPolicyArns": [
- {
- "Ref": "lambdaBasePolicy"
- }
- ],
- "Policies": [
- {
- "PolicyName": "root",
- "PolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Action": [
- "logs:CreateLogGroup",
- "logs:CreateLogStream",
- "logs:PutLogEvents"
- ],
- "Resource": "arn:aws:logs:*:*:*"
- },
- {
- "Effect": "Allow",
- "Action": [
- "s3:*",
- "dynamodb:*",
- "iam:ListRoles",
- "ses:*",
- "events:*"
- ],
- "Resource": "*"
- }
- ]
- }
- }
- ]
- }
- }
Add Comment
Please, Sign In to add comment