Replies: 1 comment 1 reply
|
You cannot define a single “global” endpoint_url in ~/.aws/config that automatically applies to all profiles without referencing it. AWS CLI configuration works per profile. The [default] profile does NOT inherit into other profiles. You have two correct and supported options. Option 1 (recommended if you truly want it global): environment variables Set the endpoint once and it applies to all profiles in that shell/session: export AWS_ENDPOINT_URL_S3=https://my-s3-compatible.example.com You can also set the addressing style globally: export AWS_S3_ADDRESSING_STYLE=path This is the only way to apply an endpoint to all profiles without editing each one. Option 2 (config-based, explicit but clean) Define a shared service and reference it from each profile: [profile profile1] [profile profile2] [services my-s3] This keeps the endpoint defined in one place, but each profile must opt in. Summary: AWS CLI has no true “global profile inheritance”. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, we are using the path
addressing_styleand I'd like to know how to specify the same endpoint_url for all AWS CLI profiles ?SebM.
All reactions