Skip to content

Instantly share code, notes, and snippets.

@t2ynkmr
Created November 5, 2018 23:23
Show Gist options
  • Save t2ynkmr/784cbf685646859e5c6fa072c7afd60e to your computer and use it in GitHub Desktop.
Save t2ynkmr/784cbf685646859e5c6fa072c7afd60e to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Id": "default",
"Statement": [
{
"Sid": "DD_LOG_INTAKE-MYACOUNTID",
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
},
"Action": "lambda:InvokeFunction",
"Resource": "arn:aws:lambda:ap-northeast-1:MYACOUNTID:function:AWStoDatadog",
"Condition": {
"StringEquals": {
"AWS:SourceAccount": "MYACOUNTID"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment