Skip to content
Dan Ryan edited this page Sep 1, 2012 · 5 revisions

Participant::Server::EC2

Overview

The ec2_server participant performs various actions on an EC2 server.

Options

  • 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

Actions

create_ec2_server

Creates an EC2 server.

Required parameters:

  • image_id
  • flavor_id
  • availability_zone
  • groups
  • key_name
  • region

destroy_ec2_server

Destroys (terminates) an EC2 server.

Required parameters:

  • instance_id
  • region

stop_ec2_server

Stops a started EC2 server.

Required parameters:

  • instance_id
  • region

start_ec2_server

Starts a stopped EC2 server.

Required parameters:

  • instance_id
  • region

restart_ec2_server

Hard reboot which explicitly stops and starts an EC2 server.

Required parameters:

  • instance_id
  • region

reboot_ec2_server

Soft reboots an EC2 server.

Required parameters:

  • instance_id
  • region
Clone this wiki locally