summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-12-03 13:59:40 -0800
committerBrian Coca <bcoca@ansible.com>2015-12-03 13:59:40 -0800
commita1ea2182b77147f5c183a35223cfb9c926ac186b (patch)
tree03993cb33985f0b189a98d27a97b850970eddab8
parent8a2459c643f2d24da466d6103ac76ae55c7e17ac (diff)
parentbfcdb0559734fd740f2aa422cce3bab28887f0bb (diff)
downloadansible-modules-core-a1ea2182b77147f5c183a35223cfb9c926ac186b.tar.gz
Merge pull request #2621 from arthur-c/devel
Example of single instance with ssd gp2 root volume creation
-rw-r--r--cloud/amazon/ec2.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/cloud/amazon/ec2.py b/cloud/amazon/ec2.py
index e035e07a..9da62f61 100644
--- a/cloud/amazon/ec2.py
+++ b/cloud/amazon/ec2.py
@@ -309,6 +309,22 @@ EXAMPLES = '''
vpc_subnet_id: subnet-29e63245
assign_public_ip: yes
+# Single instance with ssd gp2 root volume
+- ec2:
+ key_name: mykey
+ group: webserver
+ instance_type: c3.medium
+ image: ami-123456
+ wait: yes
+ wait_timeout: 500
+ volumes:
+ - device_name: /dev/xvda
+ volume_type: gp2
+ volume_size: 8
+ vpc_subnet_id: subnet-29e63245
+ assign_public_ip: yes
+ exact_count: 1
+
# Multiple groups example
- ec2:
key_name: mykey