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

fixes external role arn detection and documentation #20

Closed hyperbolist closed 7 years ago

hyperbolist commented 7 years ago

The fanout CLI was checking DESTINATION_ROLE but that is never populated. Instead it should check DESTINATION_ROLE_ARN. Also the README.md mentioned a --role-arn switch on the register and update commands, but that switch is never checked. Instead it should have been --destination-role-arn. Both changes are in this PR. Additionally the update command never pulled --destination-role-arn off of the arguments so it appeared unexpected.