Guest User

Untitled

a guest
Jan 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. "lambdaFunctionRole": {
  2. "Type": "AWS::IAM::Role",
  3. "Properties": {
  4. "AssumeRolePolicyDocument": {
  5. "Version": "2012-10-17",
  6. "Statement": [
  7. {
  8. "Effect": "Allow",
  9. "Principal": {
  10. "Service": [
  11. "lambda.amazonaws.com",
  12. "apigateway.amazonaws.com"
  13. ]
  14. },
  15. "Action": "sts:AssumeRole"
  16. }
  17. ]
  18. },
  19. "ManagedPolicyArns": [
  20. {
  21. "Ref": "lambdaBasePolicy"
  22. }
  23. ],
  24. "Policies": [
  25. {
  26. "PolicyName": "root",
  27. "PolicyDocument": {
  28. "Version": "2012-10-17",
  29. "Statement": [
  30. {
  31. "Effect": "Allow",
  32. "Action": [
  33. "logs:CreateLogGroup",
  34. "logs:CreateLogStream",
  35. "logs:PutLogEvents"
  36. ],
  37. "Resource": "arn:aws:logs:*:*:*"
  38. },
  39. {
  40. "Effect": "Allow",
  41. "Action": [
  42. "s3:*",
  43. "dynamodb:*",
  44. "iam:ListRoles",
  45. "ses:*",
  46. "events:*"
  47. ],
  48. "Resource": "*"
  49. }
  50. ]
  51. }
  52. }
  53. ]
  54. }
  55. }
Add Comment
Please, Sign In to add comment