platform/api/aws: enable SharedConfigState
A subset of the AWS environment variables are gated behind
SharedConfigState being enabled. This will allow users to specify the
following additional environment variables:
- `AWS_DEFAULT_REGION`
- `AWS_DEFAULT_PROFILE`
- `AWS_SHARED_CREDENTIALS_FILE`
- `AWS_CONFIG_FILE`
@@ -79,6 +79,7 @@ func New(opts *Options) (*API, error) {
}
sess, err := session.NewSessionWithOptions(session.Options{
+ SharedConfigState: session.SharedConfigEnable,
Profile: opts.Profile,
Config: awsCfg,
})
