fix(ec2): apply availability-zone filter in DescribeInstances (#2543)

Fixes #2542
This commit is contained in:
Leandro-ft authored and GitHub committed 2026-08-25 23:17:56 -05:00
1 parent f8597bdef9
commit 3bdcd5b84f
2 files changed
+96

No files matched your search

@@ -5096,6 +5096,8 @@ public class Ec2Service implements ContainerTeardown, ResourceProvider {
case "instance-type" -> matchesValue(values, inst.getInstanceType());
case "vpc-id" -> matchesValue(values, inst.getVpcId());
case "subnet-id" -> matchesValue(values, inst.getSubnetId());
case "availabilityZone", "availability-zone" -> inst.getPlacement() != null
&& matchesValue(values, inst.getPlacement().getAvailabilityZone());
default -> true;
};
}