-
Notifications
You must be signed in to change notification settings - Fork 7
Dan Ryan edited this page Sep 13, 2012
·
5 revisions
The ec2_server
participant performs various actions on an EC2 server.
-
aws_access_key_id
- Set with the environment variable,AWS_ACCESS_KEY_ID
-
aws_secret_access_key
- Set with the environment variable,AWS_SECRET_ACCESS_KEY
Creates an EC2 server.
Required parameters:
image_id
flavor_id
availability_zone
groups
key_name
region
create_ec2_server \
image_id: "${image_id}",
flavor_id: "${flavor_id}",
region: "${region}",
availability_zone: "${availability_zone}",
groups: "$f:groups",
key_name: "${key_name}"
Destroys (terminates) an EC2 server.
Required parameters:
instance_id
region
destroy_ec2_server \
instance_id: "${instance_id}",
region: "${region}"
Stops a started EC2 server.
Required parameters:
instance_id
region
stop_ec2_server \
instance_id: "${instance_id}",
region: "${region}"
Starts a stopped EC2 server.
Required parameters:
instance_id
region
start_ec2_server \
instance_id: "${instance_id}",
region: "${region}"
Hard reboot which explicitly stops and starts an EC2 server.
Required parameters:
instance_id
region
restart_ec2_server \
instance_id: "${instance_id}",
region: "${region}"
Soft reboots an EC2 server.
Required parameters:
instance_id
region
reboot_ec2_server \
instance_id: "${instance_id}",
region: "${region}"