Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS credentials not loading after load_aws_credentials() function call #37

Open
cjaber opened this issue Mar 30, 2024 · 0 comments
Open

Comments

@cjaber
Copy link

cjaber commented Mar 30, 2024

Hello,
I am new to duckdb and hope I am not doing something in a wrong way.
When trying to write a parquet file into S3, I am getting a "forbidden"! Even if my credentials file exists in ~/.aws/credentials

duckdb_con.sql(f"""
                       INSTALL aws;
                       LOAD aws;
                       CALL load_aws_credentials();
                    """)

results:

┌──────────────────────┬──────────────────────────┬──────────────────────┬───────────────┐
│ loaded_access_key_id │ loaded_secret_access_key │ loaded_session_token │ loaded_region │
│       varchar        │         varchar          │       varchar        │    varchar    │
├──────────────────────┼──────────────────────────┼──────────────────────┼───────────────┤
│ NULL                 │ NULL                     │ NULL                 │ us-east-1     │
└──────────────────────┴──────────────────────────┴──────────────────────┴───────────────┘

I need to explicitly set the credentials like:

                       --SET s3_region='eu-west-1';
                       --SET s3_access_key_id='XXXX';
                       --SET s3_secret_access_key='XXXXX';

FYI, I succeeded in doing a put with BOTO3 in the same python project
I use:
python 3.11.7
duckdb 0.9.2 package
macOS sonoma

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant