View a markdown version of this page

JWT Trusted identity propagation credentials provider - Amazon Athena

JWT Trusted identity propagation credentials provider

This authentication type allows you to use a JSON web token (JWT) obtained from an external identity provider as a connection parameter to authenticate with Athena. You can use this plugin, to enable support for corporate identities via trusted identity propagation.

With trusted identity propagation, identity context is added to an IAM role to identify the user requesting access to AWS resources. For information on enabling and using trusted identity propagation, see What is trusted identity propagation?.

Authentication type

Connection string name Parameter type Default value Connection string example
AuthenticationType Required IAM Credentials AuthenticationType=JWT_TIP;

JWT web identity token

The JWT obtained from your identity provider. The provider reuses its Identity Center token in memory. Disk reuse across connections and processes requires JwtTipFileCache=1; that option defaults to 0.

Connection string name Parameter type Default value Connection string example
web_identity_token Required none web_identity_token=eyJhbGc...<remainder of token>;

Workgroup Arn

The Amazon Resource Name (ARN) of the Amazon Athena workgroup. For more information about workgroups, see WorkGroup.

Connection string name Parameter type Default value Connection string example
WorkGroupArn Required none WorkGroupArn=arn:aws:athena:us-west-2:111122223333:workgroup/primary;

JWT application role ARN

The ARN of the role to assume. This role is used for JWT exchange, getting IAM Identity Center Customer Managed application ARN through workgroup tags, and getting Access Role ARN. For more information about assuming roles, see AssumeRole.

Connection string name Parameter type Default value Connection string example
ApplicationRoleArn Required none ApplicationRoleArn=arn:aws:iam::111122223333:role/applicationRole;

Role session name

A descriptive name passed to the AWS STS RoleSessionName request parameter. Use a value that meets the AWS STS requirements for the role session name.

Connection string name Parameter type Default value Connection string example
role_session_name Required none role_session_name=familiarname;

Session duration

The duration, in seconds, of the role session. For more information about session duration, see AssumeRole.

Connection string name Parameter type Default value Connection string example
duration Optional 3600 duration=900;

JWT access role ARN

The ARN of the role that the driver assumes through AWS STS with Identity Center identity context to obtain credentials for Athena calls.

Connection string name Parameter type Default value Connection string example
AccessRoleArn Optional none AccessRoleArn=arn:aws:iam::111122223333:role/accessRole;

IAM Identity Center customer managed application ARN

The ARN of IAM Identity Center customer managed IDC application. For more information about Customer Managed Applications, see customer managed applications. Replace customer-idc-application-arn with your application ARN.

Connection string name Parameter type Default value Connection string example
CustomerIdcApplicationArn Optional none CustomerIdcApplicationArn=customer-idc-application-arn;

Enable file cache

Enables an Identity Center token cache on disk for reuse across connections and processes. The cache directory is ~/.athena-odbc on Linux and macOS, and %USERPROFILE%\.athena-odbc on Windows.

Connection string name Parameter type Default value Connection string example
JwtTipFileCache Optional 0 JwtTipFileCache=1;