Warning The AWS service extensions are not DuckDB core extensions. They are developed and maintained by AWS and distributed via the AWS service repository.
Tip New to DuckDB on AWS? The Getting Started with DuckDB on AWS guide walks through reading and writing S3, authentication, AWS Glue, Athena, and Redshift.
AWS develops extensions that connect DuckDB to Amazon Web Services (AWS) services:
- The Athena extension connects DuckDB to Amazon Athena.
- The Redshift extension runs queries on Amazon Redshift and returns the results to DuckDB.
AWS Service Repository
The AWS service extensions are not available from DuckDB's built-in repositories. Instead, AWS publishes them in its own extension repository, hosted at aws.amazon.com. Before you can install or load any of these extensions, register the repository by naming its host:
CREATE EXTENSION REPOSITORY aws.amazon.com;
DuckDB fetches the repository's signing keys from the host and pins them. The statement returns the repository's name, its prefix, and the SHA-256 fingerprint of each pinned key. Registering a repository by its host requires DuckDB v2.0.1 or later.
Repository definitions are stored locally in ~/.duckdb/extension_repositories, so you only have to register the repository once on each machine or container image. To check that the repository is registered, run:
SELECT repository_name, host, prefix, key_fingerprints
FROM duckdb_extension_repositories();
Once the repository is registered, install and load extensions from it by referring to it by name:
INSTALL AND LOAD redshift FROM aws.amazon.com;
Extensions installed from a custom repository are never autoloaded, and a plain LOAD redshift; does not find them. In later sessions, load the extension from the repository:
LOAD redshift FROM aws.amazon.com;
UPDATE EXTENSIONS skips extensions installed from custom repositories. To upgrade one, reinstall it:
FORCE INSTALL redshift FROM aws.amazon.com;
Related Core Extensions
DuckDB also has two AWS-related core extensions, maintained by the DuckDB team:
- The
awsextension provides AWS authentication (via the AWS SDK credential chain) on top of thehttpfsextension's S3 support. - The
glueextension attaches an AWS Glue Data Catalog as a DuckDB database.
For an overview of authentication methods, see the S3 and AWS Authentication page.