-
Notifications
You must be signed in to change notification settings - Fork 769
Support endpoint configuration via env and shared config #2226
Description
Describe the feature
Given that the AWS-CLI has received support for endpoint configuration via AWS_ENDPOINT_URL env vars, or the shared config file, as detailed here: https://aws.amazon.com/blogs/developer/new-improved-flexibility-when-configuring-endpoint-urls-with-the-aws-sdks-and-tools/
It would be nice if the Go AWS SDK also supported this to be able to configure the AWS endpoint url automatically as done with other variables, without having to explicitly specify it in code.
Use Case
Configuring the AWS session via environment variables or the shared configuration file without having to maintain the variable in multiple places to pass it to code via a WithEndpoint func.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.20.1
Go version used
go1.20.5, MacOS Ventura 13.5