1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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.
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
Ooooh right how could I miss this! Thanks.