cloud/aws/instances.py checks if an ec2 instance has any tags. If there are none, it uses the "InstanceId", otherwise it looks for a "Name" tag. This appears to break down in the case the instance has tags but not a "Name" tag. Maybe I'm misreading the details or cause, nevertheless my logs show:
2024-03-25 11:34:45 ERROR: 'Tags'
2024-03-25 11:34:45 ERROR STACK: Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/verinfast/agent.py", line 665, in scanCloud
aws_instance_file = get_aws_instances(
File "/opt/homebrew/lib/python3.10/site-packages/verinfast/cloud/aws/instances.py", line 178, in get_instances
tags = instance['Tags']
KeyError: 'Tags'
... resulting in the process exiting before reporting on instances and instance utilization.
cloud/aws/instances.py checks if an ec2 instance has any tags. If there are none, it uses the "InstanceId", otherwise it looks for a "Name" tag. This appears to break down in the case the instance has tags but not a "Name" tag. Maybe I'm misreading the details or cause, nevertheless my logs show:
... resulting in the process exiting before reporting on instances and instance utilization.