Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeRole ¶
AssumeRole attempts to acquire temporary role credentials using AWS config settings paired with explicit config parameters respects default chain of credential providers - i.e. env, shared credentials file (~/.aws/credentials) or EC2 instance role
func AssumeRoleViaProfile ¶
func AssumeRoleViaProfile(profile string) (*sts.Credentials, error)
AssumeRoleViaProfile attempts to acquire temporary role credentials using AWS config settings paired with a profile name respects default chain of credential providers - i.e. env, shared credentials file (~/.aws/credentials) or EC2 instance role
func SetEvn ¶
func SetEvn(c *sts.Credentials)
SetEvn sets role credentials to the OS environment for subsequently executed commands/subshells
func SourceableBashEnv ¶
func SourceableBashEnv(c *sts.Credentials)
SourceableBashEnv prints commands to set credentials can be used in combination with $eval() to affect parent shell
func SourceableUnsetBashEnv ¶
func SourceableUnsetBashEnv()
SourceableUnsetBashEnv prints commands to unset credentials can be used in combination with $eval() to affect parent shell
Types ¶
This section is empty.