Skip to content

Conversation

tzulitai
Copy link
Contributor

@tzulitai tzulitai commented Sep 3, 2016

This mainly fixes the Kinesis producer to correctly set credentials on AWS's KinesisProducerConfiguration when using the AUTO option.

Previously the producer was setting credentials for KPL to null as returned from AWSUtil#getCredentialsProvider. Now the method returns a DefaultAWSCredentialsProviderChain instead.

…to not return null

Return a DefaultAWSCredentialsProviderChain instead of null when
AWS_CREDENTIALS_PROVIDER config is set to "AUTO"
@greghogan
Copy link
Contributor

Looks good to me.

Should we also create a ticket to make AUTO the default as this checks for credentials in multiple places?
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/credentials.html

@tzulitai
Copy link
Contributor Author

tzulitai commented Sep 4, 2016

Thanks for the review @greghogan.
I think it makes sense to change AUTO to be the default, as the usual use case for most AWS users is to auto-detect the credentials delivered to instances by AWS's metadata service. Changing this should not break user code either. Would you like to open the ticket for that?

@tzulitai
Copy link
Contributor Author

tzulitai commented Sep 6, 2016

Merging ...

@asfgit asfgit closed this in cab76f6 Sep 6, 2016
haoch pushed a commit to haoch/flink that referenced this pull request Sep 10, 2016
…to not return null

Return a DefaultAWSCredentialsProviderChain instead of null when
AWS_CREDENTIALS_PROVIDER config is set to "AUTO"

This closes apache#2470
liuyuzhong pushed a commit to liuyuzhong/flink that referenced this pull request Dec 5, 2016
…to not return null

Return a DefaultAWSCredentialsProviderChain instead of null when
AWS_CREDENTIALS_PROVIDER config is set to "AUTO"

This closes apache#2470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants