Created
January 20, 2019 11:07
-
-
Save mlabouardy/e2111be4ae54574c402b9176ff91fb97 to your computer and use it in GitHub Desktop.
Execution role for Kinesis consumer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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