From 7c8d3d9b20e2de2c891624cdbf0fab90f7dbde91 Mon Sep 17 00:00:00 2001 From: Arthur Clement Date: Thu, 3 Dec 2015 22:48:13 +0100 Subject: [PATCH] Example of single instance with ssd gp2 root volume creation --- lib/ansible/modules/cloud/amazon/ec2.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index 482c7f7f71..54224d4141 100755 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -306,6 +306,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