ec2.py filtering issue

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.

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!