internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(region string, roleArn string, sessionName string) (*sts.Credentials, error)

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.

Jump to

Keyboard shortcuts

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