We see that defining a template suitable to run on EC2 is simple, and needs only the AMI name to start up correctly.
Here follows a complete list of all the available EC2 attributes:
KEYPAIR: The RSA key pair name that will be used to configure remote access to newly launched instances. The private key pair will be used later, to execute commands such as
ssh -i id_keypair
orscp -i id_keypair
.ELASTICIP: The elastic IP address you want to assign to the instance launched (we need to request one from the AWS console before using it).
AUTHORIZED_PORTS: This attribute is passed to the
ec2-authorize
command along with the parameter-p port
, and can be a single number (for example:22
) or a range (for example:22-1024
).INSTANCETYPE: The type of instance to be launched in EC2. As already said, the most used instance types are: t1.micro, m1.small, m1.large, m1.xlarge, c1.medium, and c1.xlarge.
An interesting feature is the possibility...