Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogModeOff represents no AWS SDK logging (secure default) // This is more readable than using the literal value 0 LogModeOff aws.ClientLogMode = 0 )
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶ added in v0.42.1
func NewConfig(ctx context.Context, region string, profile string, roleARN string, logLevel ...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. Optional: accepts a variadic logLevel parameter for AWS SDK logging configuration
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.