Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Ubuntu1604LTSEast is the AMI for Ubuntu 16.04 LTS Ubuntu1604LTSEast = AMI("ami-29f96d3e") // CentOS7East is the AMI for CentOS 7 CentOS7East = AMI("ami-6d1c2007") // T2Micro is the T2 Micro instance type T2Micro = InstanceType(ec2.InstanceTypeT2Micro) // T2Medium is the T2 Medium instance type T2Medium = InstanceType(ec2.InstanceTypeT2Medium) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Config ClientConfig
Credentials Credentials
// contains filtered or unexported fields
}
Client for provisioning machines on AWS
func (Client) CreateNode ¶
func (c Client) CreateNode(ami AMI, instanceType InstanceType) (string, error)
CreateNode is for creating a machine on AWS using the given AMI and InstanceType. Returns the ID of the newly created machine.
func (Client) DestroyNodes ¶
DestroyNodes destroys the nodes identified by the ID.
type ClientConfig ¶
ClientConfig of the AWS client
type Credentials ¶
Credentials to be used for accessing the AI
Click to show internal directories.
Click to hide internal directories.