Skip to content

Attaching to AWS Glue fails with 403 forbidden #520

@din14970

Description

@din14970

Forgive me if this is a duplicate or if I've missed something on my end.
I've looked at other issues like #517 and #454, but it seems like I'm getting a different issue.

I'm trying to connect duckdb to Iceberg tables on S3 and registered in Glue.
We are not using S3 tables, but I've seen other issues where this still seems to work, or at least others get further than me.
Following the docs and some of the modifications, I always get stuck at trying to attach the Glue catalog:

con.execute(f"""
ATTACH '<ACCOUNT>' AS glue_catalog (
    TYPE iceberg,
    ENDPOINT_TYPE 'glue'
)
""")

This raises the following error:

Request to 'glue.<region>.amazonaws.com/iceberg/v1/config?warehouse=<ACCOUNT>' returned a non-200 status code (Forbidden_403), with reason: 

The reason is just empty.

I can connect and interact with the tables with pyiceberg, and I can read parquet files on S3 with the duckdb connection, so the problem should not be the credentials.

My environment:

duckdb                        1.3.2
duckdb-extension-aws          1.3.2
duckdb-extension-httpfs       1.3.2
duckdb-extension-iceberg      1.3.2
duckdb-extension-parquet      1.3.2
duckdb-extensions             1.3.2

Could someone suggest what the issue might be? Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions