diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 4377f0eb01e..c652da26bfd 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -298,9 +298,10 @@ class Ec2Inventory(object): for instance in instances: self.add_rds_instance(instance, region) except boto.exception.BotoServerError as e: - print "Looks like AWS RDS is down: " - print e - sys.exit(1) + if not e.reason == "Forbidden": + print "Looks like AWS RDS is down: " + print e + sys.exit(1) def get_instance(self, region, instance_id): ''' Gets details about a specific instance '''