Until now, we launched instances only into the default EC2 region—us-east-1 (Virginia). With a minimal effort, it is possible to define and manage multiple EC2 hosts separately within the same frontend, pointing to different EC2 regions or to a completely different cloud provider.
In
oned.conf
, add a newVM_MAD
definition using a uniquename
, and add a-u
parameter, followed by the remote endpoint of a new EC2 region:VM_MAD = [ name = "vmm_ec2_ireland", executable = "one_vmm_ec2", arguments = "-u https://ec2.eu-west-1.amazonaws.com/ vmm_ec2/vmm_ec2.conf", type = "xml" ]
Restart
oned
and define a new host with:$ onehost add ec2_ireland im_ec2 vmm_ec2_ireland tm_dummy dummy
Every instance deployed on this host will be started on the wanted EC2 region (Ireland).
A list of the endpoints for each region is as follows:
Region |
Endpoint |
1-Hour Cost Extra-Large |
---|---|---|
US East (Northern Virginia) |
ec2.us-east-1.amazonaws.com |
$0.68 |
US West... |