Amazon Web Services Support
Roboconf has a target implementation for Amazon Web Services (AWS).
It only supports the creation of compute VMs.
To install it, open the DM’s interactive mode and type in…
# Here in version 0.5
bundle:install --start mvn:net.roboconf/roboconf-target-iaas-ec2/0.5
Every new VM is associated with a public IP address.
This address will be used by other components which resolve their dependencies through Roboconf.
Sample target.properties.
Just copy / paste and edit.
# Configuration file for EC2
handler = iaas-ec2
name =
description =
# EC2 URL
ec2.endpoint =
# Credentials to connect
ec2.access.key =
ec2.secret.key =
# VM configuration
ec2.ami =
ec2.instance.type = t1.micro
ec2.ssh.key =
ec2.security.group =
It is also possible to define an elastic IP address.
It is not a good idea to set it in the target.properties, although it works.
Indeed, all the VM instances created from this target configuration will try to use the same elastic IP.
Since Amazon does not allow it, only the last created VM will be associated with this IP.
It is much better to define the elastic IP in the instance definition, as shown below.
instance of VM {
name: VM1;
data.ec2.elastic.ip: your-elastic-ip;
# Put children instances next...
}
In a general matter, VM instances can inject target parameters through their definitions.
These properties must start with “data.” followed by the target property.
Here is a complete description of the parameters for Amazon Web Services.
Property | Description | Default | Mandatory |
---|---|---|---|
handler | Determines the target handler to use | none, must be “iaas-ec2” | yes |
name | A human-readable name for the target | - | no |
description | A description of the target. | - | no |
ec2.endpoint | URL of the compute service (eg. eu-west-1.ec2.amazonaws.com) | none | yes |
ec2.access.key | Access key defined in your ec2 account | none | yes |
ec2.secret.key | Secret key defined in your ec2 account | none | yes |
ec2.ami | The ID of the VM image used as a template for the VM | none | yes |
ec2.instance.type | The VM “size” aka. instance type or flavor | t1.micro | no |
ec2.ssh.key | The name of the ssh key used to connect | none | yes |
ec2.security.group | The VM security group name. Caution to not set the security group id. | default | no |
ec2.elastic.ip | An elastic IP address | none | no |