ec2_lc: Update example to use snapshot id (#66064)

Fixes: #52085

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2020-01-13 08:43:13 +05:30 committed by Jill R
parent a79ca57d22
commit 5c04f25245

View file

@ -249,6 +249,30 @@ EXAMPLES = '''
volumes: volumes:
- device_name: /dev/sdf - device_name: /dev/sdf
no_device: true no_device: true
- name: Use EBS snapshot ID for volume
block:
- name: Set Volume Facts
set_fact:
volumes:
- device_name: /dev/sda1
volume_size: 20
ebs:
snapshot: snap-XXXX
volume_type: gp2
delete_on_termination: true
encrypted: no
- name: Create launch configuration
ec2_lc:
name: lc1
image_id: ami-xxxx
assign_public_ip: yes
instance_type: t2.medium
key_name: my-key
security_groups: "['sg-xxxx']"
volumes: "{{ volumes }}"
register: lc_info
''' '''
RETURN = ''' RETURN = '''