awsclicompat

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(region string, profile string, roleARN string) *session.Session

NewSession enhances newSession 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 session calls the STS API to assume the role and the session uses the assumed role credentials use the specified region and the profile.

If we need to use separate regions and profiles for each session, we might need to enhance this function further. That's another story though...

Types

This section is empty.

Jump to

Keyboard shortcuts

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