The monitor function in fence_aws.py queries all EC2 instances.
If an account has a large number of instances, this will cause the monitor to exceed the default timeout value.
Feature request to allow filtering based on AWS instance tags.
Something similar to:
...
def get_nodes_list(conn, options):
result = {}
try:
if "--filter" in options:
filter_key = options["--filter"].split("=")[0]
filter_value = options["--filter"].split("=")[1]
filter = [{ "Name": filter_key, "Values": [filter_value] }]
for instance in conn.instances.filter(Filters=filter):
result[instance.id] = ("", None)
else:
for instance in conn.instances.all():
result[instance.id] = ("", None)
...
The monitor function in fence_aws.py queries all EC2 instances. If an account has a large number of instances, this will cause the monitor to exceed the default timeout value.
Feature request to allow filtering based on AWS instance tags.
Something similar to: