Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶ added in v0.42.1
func NewConfig(ctx context.Context, region string, profile string, roleARN string) (aws.Config, error)
NewConfig enhances newConfig by adding support for assuming a role not specified in the AWS profile. The third parameter is the ARN of the role to assume.
Both the config creation and the assumed role credentials use the specified region and the profile.
If we need to use separate regions and profiles for each config, we might need to enhance this function further. That's another story though...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.