internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListMFADevices

func ListMFADevices(awsConfig aws.Config) ([]string, error)

ListMFADevices list available MFA devices.

func PromptSurvey

func PromptSurvey(devices []string) (*types.SurveyAnswer, error)

PromptSurvey prompts survey to user

Types

type Profile

type Profile 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"`
}

Profile to insert into the template.

func GetSessionToken

func GetSessionToken(awsConfig aws.Config, duration int64, device string, code string) (*Profile, error)

GetSessionToken fetch a new token through AWS Security Token Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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