Guides
Credentials and Configuration
After loading the `httpfs` extension, set up the credentials and S3 region to read data:  
```sql
CREATE SECRET (
TYPE S3,
KEY_ID 'AKIAIOSFODNN7EXAMPLE',
SECRET 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
REGION 'us-east-1'
);
```  
> **Tip.  ** If you get an IO Error (` Connection error for HTTP HEAD`), configure the endpoint explicitly via `ENDPOINT 's3.⟨your-region⟩.amazonaws.com'`.  
Alternatively, use the [`aws` extension](#docs:extensions:aws) to retrieve the credentials automatically:  
```sql
CREATE SECRET (
TYPE S3,
PROVIDER CREDENTIAL_CHAIN
);
```