Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Profile ¶
type Profile struct { Name string `ini:"-"` AccessKeyID string `ini:"aws_access_key_id,omitempty"` SecretAccessKey string `ini:"aws_secret_access_key,omitempty"` SessionToken string `ini:"aws_session_token,omitempty"` MFASerial string `ini:"mfa_serial,omitempty"` Region string `ini:"region,omitempty"` AuthenticationExpiration string `ini:"authentication_expiration,omitempty"` }
Profile represents a structure that includes authentication fields necessary to authenticate with AWS.
func Authenticate ¶
Authenticate will establish a set of temporary AWS credentials for the specific duration. The serialNumber and token are linked to the MFA device that is connected to the AWS profile/account.
func NewProfile ¶
func NewProfile(profile, region, serialNumber, accessKeyID, secretAccessKey string) (Profile, error)
NewProfile will return a new profile based on parameters that are passed in.
func ReadConfigFile ¶
ReadConfigFile will read the specific filename and parse the file specifically for AWS config file formats and return a list of Profiles.
Click to show internal directories.
Click to hide internal directories.