diff options
author | Arthur Clement <arthur@runmyprocess.com> | 2015-12-03 22:48:13 +0100 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-12-03 14:00:23 -0800 |
commit | 1d4a8264e22f23313afcfbd220be85df74999d8f (patch) | |
tree | 31062a37bbc2d97d291bee90c4024e8ccc39e700 | |
parent | 3cd80722ed77e58da5a8dc732cccf0d910c78601 (diff) | |
download | ansible-modules-core-1d4a8264e22f23313afcfbd220be85df74999d8f.tar.gz |
Example of single instance with ssd gp2 root volume creation
-rw-r--r-- | cloud/amazon/ec2.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cloud/amazon/ec2.py b/cloud/amazon/ec2.py index 4d25789b..81eec165 100644 --- a/cloud/amazon/ec2.py +++ b/cloud/amazon/ec2.py @@ -303,6 +303,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 |