Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion timdex_dataset_api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ def _configure_duckdb_s3_secret(
If a scope is provided, e.g. an S3 URI prefix like 's3://timdex', set a scope
parameter in the config. Else, leave it blank.
"""
# install httpfs extension
conn.execute(
"""
install httpfs;
load httpfs;
"""
)

# establish scope string
scope_str = f", scope '{scope}'" if scope else ""

Expand All @@ -186,7 +194,6 @@ def _configure_duckdb_s3_secret(
create or replace secret aws_s3_secret (
type s3,
provider credential_chain,
chain 'sso;env;config',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here was the key change.

refresh true
{scope_str}
);
Expand Down