The following JDBC driver error occurs when refreshing an Amazon Athena extract with Athena JDBC driver version 2.0.34 or newer:
[JDBC Driver]You are not authorized to perform: athena:CreatePreparedStatement on the resource
or
[JDBC Driver]User: arn:aws:Iam::<xxxxxx>:user/tableau_user is not authorized to perform: athena:CreatePreparedStatement on resource
The Amazon Athena account does not have the required IAM permissions.
Please add the following IAM permissions to allow access to prepared statements*.
Since no issue with an older Athena JDBC driver version, the JDBC error is considered related to [AJ-466] Ec2InstanceMetadata support in Athena JDBC driver 2.0.34. For more information, see Athena JDBC driver release notes*.
*Although we make every effort to ensure links to external websites are accurate, up to date, and relevant, Tableau cannot take responsibility for the accuracy or freshness of pages maintained by external providers. Contact the external site for answers to questions regarding its content.
001474898

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.