From 5baae7ef7b7ecf6bd893273d3ec284721ac35eaa Mon Sep 17 00:00:00 2001 From: Silvio Vasiljevic Date: Fri, 27 Sep 2024 11:21:47 +0200 Subject: [PATCH] Add vpc-peering-connection handling --- moto/resourcegroupstaggingapi/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/resourcegroupstaggingapi/models.py b/moto/resourcegroupstaggingapi/models.py index 0141ca036fdb..8cafdb18b3e0 100644 --- a/moto/resourcegroupstaggingapi/models.py +++ b/moto/resourcegroupstaggingapi/models.py @@ -296,7 +296,7 @@ def format_tag_keys( for subnet in self.ec2_backend.subnets.values() for subnet in subnet.values() ), - # TODO: "ec2:vpc-peering-connection": self.ec2_backend.vpc_peering_connections.values(), + "ec2:vpc-peering-connection": self.ec2_backend.vpc_pcxs.values(), "ec2:transit-gateway": self.ec2_backend.transit_gateways.values(), "ec2:transit-gateway-attachment": self.ec2_backend.transit_gateway_attachments.values(), "ec2:route-table": self.ec2_backend.route_tables.values(), @@ -306,8 +306,8 @@ def format_tag_keys( "ec2:internet-gateway": self.ec2_backend.internet_gateways.values(), "ec2:managed-prefix-lists": self.ec2_backend.managed_prefix_lists.values(), "ec2:flow-logs": self.ec2_backend.flow_logs.values(), - # TODO: "ec2:reserved-instance": self.ec2_backend.reserved_instances.values(), "ec2:spot-instance-request": self.ec2_backend.spot_instance_requests.values(), + # TODO: "ec2:reserved-instance": ..., } for resource_type, resources in ec2_resource_types.items():