Advertisement
AviKeinan

Lambda IAM permissions

May 6th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.04 KB | None | 0 0
  1. {
  2.    "Version":"2012-10-17",
  3.    "Statement":[
  4.       {
  5.          "Effect":"Allow",
  6.          "Action":[
  7.             "logs:CreateLogGroup",
  8.             "logs:CreateLogStream",
  9.             "logs:PutLogEvents"
  10.          ],
  11.          "Resource":"arn:aws:logs:*:*:*"
  12.       },
  13.       {
  14.          "Effect":"Allow",
  15.          "Action":[
  16.             "ec2:DescribeRegions",
  17.             "ec2:DescribeInstances"
  18.          ],
  19.          "Resource":"*"
  20.       },
  21.       {
  22.          "Sid":"VisualEditor0",
  23.          "Effect":"Allow",
  24.          "Action":[
  25.             "ec2:StartInstances"
  26.          ],
  27.          "Resource":"*",
  28.          "Condition":{
  29.             "StringLike":{
  30.                "ec2:ResourceTag/TurnOn":"*"
  31.             }
  32.          }
  33.       },
  34.       {
  35.          "Sid":"VisualEditor1",
  36.          "Effect":"Allow",
  37.          "Action":[
  38.             "ec2:StopInstances"
  39.          ],
  40.          "Resource":"*",
  41.          "Condition":{
  42.             "StringLike":{
  43.                "ec2:ResourceTag/TurnOff":"*"
  44.             }
  45.          }
  46.       }
  47.    ]
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement