diff --git a/README.md b/README.md index d6c2ad9..c4632df 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,10 @@ Default: ```json [ { - "self": true + "from_port": 0, + "protocol": -1, + "self": true, + "to_port": 0 } ] ``` @@ -321,7 +324,10 @@ Default: ```json [ { - "self": true + "from_port": 0, + "protocol": "-1", + "self": true, + "to_port": 0 } ] ``` diff --git a/variables.tf b/variables.tf index 06d33da..5776e1a 100644 --- a/variables.tf +++ b/variables.tf @@ -179,7 +179,10 @@ variable "default_security_group_ingress" { description = "List of maps of ingress rules to set on the default security group" type = list(map(string)) default = [{ - self = true + protocol = -1 + self = true + from_port = 0 + to_port = 0 }] } @@ -187,6 +190,9 @@ variable "default_security_group_egress" { description = "List of maps of egress rules to set on the default security group" type = list(map(string)) default = [{ - self = true + protocol = "-1" + self = true + from_port = 0 + to_port = 0 }] }