Skip to content

Instantly share code, notes, and snippets.

@t2ynkmr
Last active November 5, 2018 23:24
Show Gist options
  • Save t2ynkmr/8913fcfc28a5d93adc98b59931d85705 to your computer and use it in GitHub Desktop.
Save t2ynkmr/8913fcfc28a5d93adc98b59931d85705 to your computer and use it in GitHub Desktop.
lamda execution role
{
"roleName": "lambda_execute_datadog",
"policies": [
{
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"kms:Decrypt"
],
"Resource": [
"arn:aws:kms:ap-northeast-1:MYACOUNTID:key/KEYID"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::BUCKETNAME1/*",
"arn:aws:s3:::BUCKETNAME2/*"
]
}
]
},
"name": "lambda_execute_datadog",
"type": "inline"
}
],
"trustedEntities": [
"lambda.amazonaws.com"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment