Cloud Data Access
Also available as:
loading table of contents...

Using Temporary Session Credentials

Temporary Security Credentials can be obtained from the AWS Security Token Service. These credentials consist of an access key, a secret key, and a session token.

To authenticate with these credentials:

  1. Declare org.apache.hadoop.fs.s3a.TemporaryAWSCredentialsProvider as the provider.

  2. Set the session key in the property fs.s3a.session.token, and set the access and secret key properties to those of this temporary session.





The lifetime of session credentials is determined when the credentials are issued; once they expire the application will no longer be able to authenticate to AWS.

Related Links

Defining Authentication Providers