You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kristian Frøhlich Hansen (JIRA)" <ji...@apache.org> on 2016/09/21 08:38:20 UTC

[jira] [Created] (FLINK-4652) Don't pass credentials explicitly to AmazonClient - use credentials provider instead

Kristian Frøhlich Hansen created FLINK-4652:
-----------------------------------------------

             Summary: Don't pass credentials explicitly to AmazonClient - use credentials provider instead
                 Key: FLINK-4652
                 URL: https://issues.apache.org/jira/browse/FLINK-4652
             Project: Flink
          Issue Type: Bug
          Components: Kinesis Connector
    Affects Versions: 1.2.0
            Reporter: Kristian Frøhlich Hansen
            Priority: Minor
             Fix For: 1.2.0


By using the credentials explicitly we are responsible for checking and refreshing credentials before they expire. If no refreshment is done we will encounter AmazonServiceException: 'The security token included in the request is expired'. To utilize automatic refreshment of credentials pass the AWSCredentialsProvider direclty to AmazonClient by removing the getCredentials() call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)