diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 674e0bddb..4e26f0f65 100755 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -1324,7 +1324,7 @@ class SecurityGroup(TaggedEC2Resource): self.name = name self.description = description self.ingress_rules = [] - self.egress_rules = [SecurityRule(-1, -1, -1, ['0.0.0.0/0'], [])] + self.egress_rules = [SecurityRule(-1, None, None, ['0.0.0.0/0'], [])] self.enis = {} self.vpc_id = vpc_id self.owner_id = "123456789012" diff --git a/moto/ec2/responses/security_groups.py b/moto/ec2/responses/security_groups.py index 9118c01b3..0009ff131 100644 --- a/moto/ec2/responses/security_groups.py +++ b/moto/ec2/responses/security_groups.py @@ -179,8 +179,12 @@ DESCRIBE_SECURITY_GROUPS_RESPONSE = """