From 9ca48339723b3974b6e24514dcb99917e387fed0 Mon Sep 17 00:00:00 2001 From: SoenkeD Date: Sat, 9 Mar 2024 17:20:13 +0100 Subject: [PATCH] VPCEndpoint: add state filtering --- moto/ec2/models/vpcs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moto/ec2/models/vpcs.py b/moto/ec2/models/vpcs.py index 299f17d4be14..74ee96c462b5 100644 --- a/moto/ec2/models/vpcs.py +++ b/moto/ec2/models/vpcs.py @@ -155,6 +155,8 @@ def get_filter_value( ) -> Any: if filter_name in ("vpc-endpoint-type", "vpc_endpoint_type"): return self.endpoint_type + if filter_name in ("vpc-endpoint-state", "vpc_endpoint_state"): + return self.state else: return super().get_filter_value(filter_name, "DescribeVpcs")