1 Answer
- Newest
- Most votes
- Most comments
1
LoadDefaultConfig
will accept any number of the LoadOptions
(With...
) functions as arguments. You should be able to do:
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithSharedConfigProfile("saml"), config.WithRegion("us-east-1"))
There's an example here: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#example-package-Custom_config.
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago
Ooooh right how could I miss this! Thanks.