Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created January 20, 2019 11:07
Show Gist options
  • Save mlabouardy/e2111be4ae54574c402b9176ff91fb97 to your computer and use it in GitHub Desktop.
Save mlabouardy/e2111be4ae54574c402b9176ff91fb97 to your computer and use it in GitHub Desktop.
Execution role for Kinesis consumer
{
"roleName": "LogsConsumerRole",
"policies": [
{
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"kinesis:GetShardIterator",
"kinesis:GetRecords",
"kinesis:DescribeStream"
],
"Resource": "arn:aws:kinesis:AWS_REGION:ACCOUNT_ID:stream/cloudwatch-logs"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "kinesis:ListStreams",
"Resource": "*"
}
]
},
"name": "ReadLogsStream",
"id": "ANPAIEWKJFLJDV43GIICM",
"type": "managed",
"arn": "arn:aws:iam::ACCOUNT_ID:policy/ReadLogsStream"
}
],
"trustedEntities": [
"lambda.amazonaws.com"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment