awslabs / kinesis-kafka-connector

kinesis-kafka-connector is connector based on Kafka Connect to publish messages to Amazon Kinesis streams or Amazon Kinesis Firehose.
Apache License 2.0
153 stars 91 forks source link

Support IAM AssumeRole with an External ID #44

Closed skidder closed 4 years ago

skidder commented 4 years ago

The Kinesis and Kinesis Firehose connectors should support the use of an IAM role with an external-id. This is a popular method of restricting access to AWS resources across accounts. In my case, I need to configure the Kinesis connector to read from Kafka and write to a Kinesis stream owned by another AWS account.

The connectors should take the following additional config values:

If the Role ARN is supplied, then an STS AssumeRole request should be made; otherwise, use the default AWS authentication provider without an STS call.