Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
NewSession creates a new AWS session for the given AWS region and AWS PROFILE.
The following credential sources are supported:
1. static credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) 2. static credentials loaded from profiles (AWS_PROFILE, when AWS_SDK_LOAD_CONFIG=true) 3. dynamic credentials obtained by assuming the role using static credentials loaded from the profile (AWS_PROFILE, when AWS_SDK_LOAD_CONFIG=true) 4. dynamic credentials obtained by assuming the role using static credentials loaded from the env (FORCE_AWS_PROFILE=true w/ credential_source=Environment)
The fourth option of using FORCE_AWS_PROFILE=true and AWS_PROFILE=yourprofile is equivalent to `aws --profile ${AWS_PROFILE}`. See https://github.com/helmfile/vals/issues/19#issuecomment-600437486 for more details and why and when this is needed.
Types ¶
This section is empty.