aws-sdk-go-v2 icon indicating copy to clipboard operation
aws-sdk-go-v2 copied to clipboard

Allow setting `IgnoreConfiguredEndpoints` on `config.LoadOptions`

Open gdavison opened this issue 2 years ago • 0 comments

Describe the feature

The config.SharedConfig and config.EnvConfig structs both have a parameter IgnoreConfiguredEndpoints that sets a common endpoint URL for all services. config.LoadOptions does not have the corresponding parameter.

Also add the corresponding WithIgnoreConfiguredEndpoints functional option.

Use Case

There does not seem to be a way to override endpoints configured using environment variables or the shared config file. While the aws.Config returned by config.LoadDefaultConfig could be manually modified, this would not affect any service clients potentially used internally by LoadDefaultConfig, such as for STS.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [X] 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.24.0 github.com/aws/aws-sdk-go-v2/config v1.26.1

Go version used

go version go1.21.0 darwin/arm64

gdavison avatar Dec 11 '23 19:12 gdavison