parameter |
required |
default |
choices |
comments |
assign_public_ip
(added in 1.5) |
no |
|
|
when provisioning within vpc, assign a public IP address. Boto library must be 2.13.0+
|
aws_access_key
|
no |
|
|
AWS access key. If not set then the value of the AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY or EC2_ACCESS_KEY environment variable is used.
aliases: ec2_access_key, access_key
|
aws_secret_key
|
no |
|
|
AWS secret key. If not set then the value of the AWS_SECRET_ACCESS_KEY, AWS_SECRET_KEY, or EC2_SECRET_KEY environment variable is used.
aliases: ec2_secret_key, secret_key
|
count
|
no |
1 |
|
number of instances to launch
|
count_tag
(added in 1.5) |
no |
|
|
Used with 'exact_count' to determine how many nodes based on a specific tag criteria should be running. This can be expressed in multiple ways and is shown in the EXAMPLES section. For instance, one can request 25 servers that are tagged with "class=webserver". The specified tag must already exist or be passed in as the 'instance_tags' option.
|
ebs_optimized
(added in 1.6) |
no |
false |
|
|
ec2_url
|
no |
|
|
Url to use to connect to EC2 or your Eucalyptus cloud (by default the module will use EC2 endpoints). Ignored for modules where region is required. Must be specified for all other modules if region is not used. If not set then the value of the EC2_URL environment variable, if any, is used.
|
exact_count
(added in 1.5) |
no |
|
|
An integer value which indicates how many instances that match the 'count_tag' parameter should be running. Instances are either created or terminated based on this value.
|
group
|
no |
|
|
security group (or list of groups) to use with the instance
aliases: groups
|
group_id
|
no |
|
|
security group id (or list of ids) to use with the instance
|
id
|
no |
|
|
|
image
|
yes |
|
|
ami ID to use for the instance
|
instance_ids
(added in 1.3) |
no |
|
|
list of instance ids, currently used for states: absent, running, stopped
aliases: instance_id
|
instance_initiated_shutdown_behavior
(added in 2.2) |
no |
stop |
|
Set whether AWS will Stop or Terminate an instance on shutdown. This parameter is ignored when using instance-store images (which require termination on shutdown).
|
instance_profile_name
(added in 1.3) |
no |
|
|
Name of the IAM instance profile to use. Boto library must be 2.5.0+
|
instance_tags
|
no |
|
|
a hash/dictionary of tags to add to the new instance or for starting/stopping instance by tag; '{"key":"value"}' and '{"key":"value","key":"value"}'
|
instance_type
|
yes |
|
|
|
kernel
|
no |
|
|
kernel eki to use for the instance
|
key_name
|
no |
|
|
key pair to use on the instance
aliases: keypair
|
monitoring
|
no |
|
|
enable detailed monitoring (CloudWatch) for instance
|
network_interfaces
(added in 2.0) |
no |
|
|
A list of existing network interfaces to attach to the instance at launch. When specifying existing network interfaces, none of the assign_public_ip, private_ip, vpc_subnet_id, group, or group_id parameters may be used. (Those parameters are for creating a new network interface at launch.)
aliases: network_interface
|
placement_group
(added in 1.3) |
no |
|
|
placement group for the instance when using EC2 Clustered Compute
|
private_ip
|
no |
|
|
the private ip address to assign the instance (from the vpc subnet)
|
profile
(added in 1.6) |
no |
|
|
Uses a boto profile. Only works with boto >= 2.24.0.
|
ramdisk
|
no |
|
|
ramdisk eri to use for the instance
|
region
|
no |
|
|
aliases: aws_region, ec2_region
|
security_token
(added in 1.6) |
no |
|
|
AWS STS security token. If not set then the value of the AWS_SECURITY_TOKEN or EC2_SECURITY_TOKEN environment variable is used.
aliases: access_token
|
source_dest_check
(added in 1.6) |
no |
True |
|
Enable or Disable the Source/Destination checks (for NAT instances and Virtual Routers)
|
spot_launch_group
(added in 2.1) |
no |
|
|
|
spot_price
(added in 1.5) |
no |
|
|
Maximum spot price to bid, If not set a regular on-demand instance is requested. A spot request is made with this maximum bid. When it is filled, the instance is started.
|
spot_type
(added in 2.0) |
no |
one-time |
|
Type of spot request; one of "one-time" or "persistent". Defaults to "one-time" if not supplied.
|
spot_wait_timeout
(added in 1.5) |
no |
600 |
|
how long to wait for the spot instance request to be fulfilled
|
state
(added in 1.3) |
no |
present |
- present
- absent
- running
- restarted
- stopped
|
create or terminate instances
|
tenancy
(added in 1.9) |
no |
default |
|
An instance with a tenancy of "dedicated" runs on single-tenant hardware and can only be launched into a VPC. Note that to use dedicated tenancy you MUST specify a vpc_subnet_id as well. Dedicated tenancy is not available for EC2 "micro" instances.
|
termination_protection
(added in 2.0) |
no |
|
|
Enable or Disable the Termination Protection
|
user_data
|
no |
|
|
opaque blob of data which is made available to the ec2 instance
|
validate_certs
(added in 1.5) |
no |
yes |
|
When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0.
|
volumes
(added in 1.5) |
no |
|
|
a list of hash/dictionaries of volumes to add to the new instance; '[{"key":"value", "key":"value"}]'; keys allowed are - device_name (str; required), delete_on_termination (bool; False), device_type (deprecated), ephemeral (str), encrypted (bool; False), snapshot (str), volume_type (str), iops (int) - device_type is deprecated use volume_type, iops must be set when volume_type='io1', ephemeral and snapshot are mutually exclusive.
|
vpc_subnet_id
|
no |
|
|
the subnet ID in which to launch the instance (VPC)
|
wait
|
no |
no |
|
wait for the instance to reach its desired state before returning. Does not wait for SSH, see 'wait_for' example for details.
|
wait_timeout
|
no |
300 |
|
how long before wait gives up, in seconds
|
zone
|
no |
|
|
AWS availability zone in which to launch the instance
aliases: aws_zone, ec2_zone
|