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")