diff --git a/moto/ec2/responses/security_groups.py b/moto/ec2/responses/security_groups.py index ed50c796b..2e821f49b 100644 --- a/moto/ec2/responses/security_groups.py +++ b/moto/ec2/responses/security_groups.py @@ -109,7 +109,9 @@ DESCRIBE_SECURITY_GROUPS_RESPONSE = """ + {% if group.vpc_id %} + {{ group.vpc_id }} + {% endif %} {% for rule in group.ingress_rules %}