Hi,
> (A) So I infer that you are asking for a way to set automatically applied > tags for instances added to a VPC. Do you know if this is ordinarily > possible in AWS? When you create a VPC using `ec2_vpc` it creates the VPC as well as some other AWS objects -- subnets, route tables and internet gateways respectively, as specified when calling the module. The module returns the vpc id as well as the subnet ids. However it does not return the gateway nor the route table id values. I would like to tag these if possible. The tagging doesn't need to be automatic though. Can use ec2_tag, however I am unable to obtain these ids which leads me to the next question... > (B) When you say "there is no way to get this data out of the system", which > is this data specifically? Both the returned value from the ec2_vpc and using the ec2 inventory module don't enumerate the route tables and gateways (and some other aws objects). I realise this is EC2 inventory, and not AWS inventory, so if there's another inventory module or similar way to get this, that would be great. > (C) With regard to the ec2_facts module, this module returns variables about > an instance obtained by the instance querying the metadata service. Do you > want to see what variables it returns or are you looking for more information > about how to invoke it? I just realised that you need to be running ec2_facts on the ec2 machine itself, and it returns that machine's metadata. Have added some additional information to the docs -- PR #9102. Thanks so much. Steve -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/49E4A48E-AD41-45F0-81F5-3831FD6F3015%40stevenringo.com. For more options, visit https://groups.google.com/d/optout.
