View a markdown version of this page

Windows - Amazon Athena

Windows

Choose a workgroup and authentication method, and grant the connection credentials athena:GetWorkGroup. For a DuckDB connection, use a DuckDB workgroup and leave EngineVersion unset for the initial connection.

Install

Run the AmazonAthenaODBC-4.0.0.0-windows-amd64.msi installer and follow its installation wizard.

Create and test a DSN

Open ODBC Data Sources (64-bit). On the Drivers tab, confirm that Amazon Athena ODBC (x64) is installed.

On the System DSN or User DSN tab, choose Add, select Amazon Athena ODBC (x64), and choose Finish.

Enter a data source name, Region, catalog, database, and workgroup. For a workgroup with an S3 result location, configure S3 Output Location if the workgroup does not supply one.

Choose Authentication Options and select your authentication type. For the default credentials provider chain, select Default Credentials. Choose Test, then OK to save the DSN.

Use Advanced Options for the result fetcher and query timeout, Logging Options for driver logs, and Endpoint Overrides or Proxy Options when your connection requires them.

DSN=athena_odbc_test;

You can also set connection parameters in the connection string. A connection-string value overrides the corresponding DSN value.