Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
CreateSession creates an AWS session from the given profile
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetMFAToken ¶
func GetMFAToken() string
GetMFAToken retrieves MFA token codes from either stdin or the "token" flag
Types ¶
type CredentialsShortTerm ¶
type CredentialsShortTerm struct { AssumedRole string `ini:"assumed_role"` AssumedRoleARN string `ini:"assumed_role_arn,omitempty"` AWSAccessKeyID string `ini:"aws_access_key_id"` AWSSecretAccessKey string `ini:"aws_secret_access_key"` AWSSessionToken string `ini:"aws_session_token"` AWSSecurityToken string `ini:"aws_security_token"` Expiration string `ini:"expiration"` }
CredentialsShortTerm is used to reflect updated credentials
func GetCredsWithRole ¶
func GetCredsWithRole(sess *session.Session) CredentialsShortTerm
GetCredsWithRole is used to get temporary AWS credentials when assuming a role
func GetCredsWithoutRole ¶
func GetCredsWithoutRole(sess *session.Session) CredentialsShortTerm
GetCredsWithoutRole is used to get temporary AWS credentials when NOT assuming a role
Click to show internal directories.
Click to hide internal directories.