Refresh EC2 instance information after creation.

15 views
Skip to first unread message

Nico K.

unread,
Apr 11, 2015, 5:05:03 AM4/11/15
to ansible...@googlegroups.com
Hi,

I'm creating an EC2 instance, then assigning an eIP to it, after I want to create a route53 entry using the eIP's CNAME (eip task only returns ip_address not the dns name sadly).

My current approach is to attempt to refresh the EC2 instance information (from the control host, I can't login on the box yet; so no ec2_facts), and from the refreshed information pull the public_dns_name.
However I can't find a simple way to refresh the instance information (other than aws ec2 describe-instances --filter .. and then doing all kinds of magic to have ansible understand it's output)..

Anyone who's doing something similar or who could give me some pointers?

Thanks,
Nico.
Reply all
Reply to author
Forward
0 new messages