Retrieving list of available VPCs and available Subnets via AWS dynamic inventory

17 views
Skip to first unread message

Rihards

unread,
Apr 15, 2015, 9:19:01 AM4/15/15
to ansible...@googlegroups.com
I have VPC with number of subnets in it which (vpc and subnets) are tagged in a particular way what would give me a way to retrieve a particular subnet that I want to use to launch ec2 instance (using ansible ec2 module).

How do I do that? Should I record subnet and vpc ids in some way in file to use them later on? What would be a best practice in this case?
Reply all
Reply to author
Forward
0 new messages