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.3
bundle:install mvn:net.roboconf/roboconf-target-iaas-ec2/0.3
bundle:start <bundle-id>

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
target.id = iaas-ec2

# 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
target.id Determines the target handler to use none, must be “iaas-ec2” yes
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 default no
ec2.volume.snapshot.id A snapshot volume to attach for storage none no
ec2.elastic.ip An elastic IP address none no