awsclicompat

package
v0.42.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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...

func NewSession

func NewSession(region string, profile string, roleARN string) aws.Config

NewSession provides backwards compatibility for existing code Deprecated: Use NewConfig instead

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL