awsProfileHandler

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSAccountID

func GetAWSAccountID() (string, error)

GetAWSRegion returns the account ID for the current AWS profile

func GetAWSProfile

func GetAWSProfile() string

returns the current AWS profile based on environment variable

func GetAWSRegion

func GetAWSRegion() (string, error)

GetAWSRegion returns the default region for the current AWS profile

func GetNimbusBucketName

func GetNimbusBucketName() (string, error)

func GetTestBucketName

func GetTestBucketName() (string, error)

func SetAWSProfile

func SetAWSProfile(profile string) error

SetAWSProfile specifies the AWS profile to use. By default, the AWS SDK checks the AWS_PROFILE environment variable to determine which profile to use. If the AWS_PROFILE variable is not set in your environment, the SDK uses the credentials for the [default] profile. To use one of the alternate profiles, set or change the value of the AWS_PROFILE environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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