Multiple volumes attach to ec2 from single snapshot

28 views
Skip to first unread message

Parth Patel

unread,
Aug 3, 2022, 7:01:14 AM8/3/22
to ansible...@googlegroups.com
Hi Team,

I would like to know the approach to attach more than then the same volume to ec2 generated from a single snapshot only. 

I did achieve generating a single volume and attaching it to ec2 from the snapshot. 

amazon.aws.ec2_vol:
    instance: <id>
    snapshot: <id>
    tags: <tags>
    volume_type: <gp2>


Walter Rowe

unread,
Aug 3, 2022, 2:06:16 PM8/3/22
to Ansible Project
Take a look at the ec2_instance module. It has a volumes parameter.


I don't know if you can launch from a snapshot AND attach multiple additional volumes in a single task using this. Worth checking into.
--
Walter Rowe, Chief
Infrastructure Services
Office of Information Systems Management
National Institute of Standards and Technology
United States Department of Commerce

Reply all
Reply to author
Forward
0 new messages