Documentation ¶
Overview ¶
Package utils just contains a couple of helper-methods which simplify the implementation of our various sub-commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRoles ¶
func HandleRoles(session *session.Session, roleFile string, callback AWSCallback, void interface{}) []error
HandleRoles invokes the specified callback, handling the case where a role-file is specified or not.
If the roleFile is empty then the function will be invoked once, otherwise it will be invoked for every role.
To allow execution to continue on subsequent roles errors in the execution of a callback do not cause processing of the callback to terminate.
func NewSession ¶
NewSession returns an AWS session object, with optional request-tracing.
If the environmental variable "DEBUG" is non-empty then requests made to AWS will be logged to the console.