ec2.py filtering issue

201 views
Skip to first unread message

Gary Malouf

unread,
Feb 9, 2015, 6:09:31 PM2/9/15
to ansible...@googlegroups.com
I'm attempting to separate my staging and production server via two different vpcs.  I'm using a filter as follows in each of ec2.ini files to separate instances running in the staging vpc from those in the production one.

instance_filters = vpc-id=vpc-someid

This works well for filtering out EC2 instances and load balancers that are not in the specified vpc.  However, I am seeing meta-data come back for an RDS instance that is running in a different vpc.  Does anyone else get similar behavior - I'm trying to figure out if this is a bug or expected behavior.

James Cammarata

unread,
Feb 10, 2015, 1:29:26 AM2/10/15
to ansible...@googlegroups.com
Hi Gary, I believe this is expected behavior. You can set rds=False in the ec2.ini to have RDS instance information removed from the dynamic inventory results.

Hope that helps!

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c71b120-aa4c-49ec-8803-098b615b8409%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages