Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

JWT credentials

Focus mode
JWT credentials - Amazon Athena

With this authentication type, you can use a JSON web token (JWT) obtained from an external identity provider as a connection parameter to authenticate with Athena. The external credentials provider must already be federated with AWS.

Credentials provider

The credentials provider that will be used to authenticate requests to AWS. Set the value of this parameter to JWT.

Parameter name Alias Parameter type Default value Value to use
CredentialsProvider AWSCredentialsProviderClass (deprecated) Required none JWT

JWT web identity token

The JWT token obtained from an external federated identity provider. This token will be used to authenticate with Athena.

Parameter name Alias Parameter type Default value
JwtWebIdentityToken web_identity_token (deprecated) Required none

JWT role ARN

The Amazon Resource Name (ARN) of the role to assume. For information about assuming roles, see AssumeRole in the AWS Security Token Service API Reference.

Parameter name Alias Parameter type Default value
JwtRoleArn role_arn (deprecated) Required none

JWT role session name

The name of the session when you use JWT credentials for authentication. The name can be any name that you choose.

Parameter name Alias Parameter type Default value
JwtRoleSessionName role_session_name (deprecated) Required none

Role session duration

The duration, in seconds, of the role session. For more information, see AssumeRoleWithWebIdentity in the AWS Security Token Service API Reference.

Parameter name Alias Parameter type Default value
RoleSessionDuration Duration (deprecated) Optional 3600
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.