Read endpoint_url from AWS config profile
When no endpoint environment variable is set, kio-s3 now reads endpoint_url from the active AWS config profile (~/.aws/config).
This completes the standard AWS SDK configuration precedence for endpoint resolution:
-
AWS_ENDPOINT_URL_S3(service-specific env var, !8 (merged)) -
AWS_ENDPOINT_URL(global env var, !7 (merged)) -
endpoint_urlfrom config profile (this MR) - Default AWS endpoint
Example ~/.aws/config:
[default]
endpoint_url = https://your-endpoint.example.com
How to test
# Set endpoint_url in ~/.aws/config, then:
kioclient ls s3://bucket/
# Env var still takes priority over config:
AWS_ENDPOINT_URL_S3=https://other.example.com kioclient ls s3://bucket/
# Remove endpoint_url from config — falls back to default AWS