aws-samples / aws-lambda-fanout

A sample AWS Lambda function that accepts messages from an Amazon Kinesis Stream and transfers the messages to another data transport.
Apache License 2.0
288 stars 60 forks source link

Corrected user policy arn for AmazonDynamoDBReadOnlyAccess #17

Closed sushant-pradhan closed 7 years ago

sushant-pradhan commented 7 years ago

The arn policy for AmazonDynamoDBReadOnlyAccess is incorrect in the file: cli/functions.sh. It should be: aws iam attach-role-policy --role-name $EXEC_ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBReadOnlyAccess ${CLI_PARAMS[@]} instead of: aws iam attach-role-policy --role-name $EXEC_ROLE_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonDynamoDBReadOnlyAccess ${CLI_PARAMS[@]}

julienlepine commented 7 years ago

Thanks