Skip to content

Commit 97c85be

Browse files
committed
feat: defaulted some of the values
1 parent 8ebbe38 commit 97c85be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/nacls/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | The subnet IDs to apply the NACL to | `list(string)` | n/a | yes |
1515
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to apply to the NACL | `map(string)` | n/a | yes |
1616
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | The VPC ID to create the NACL in | `string` | n/a | yes |
17-
| <a name="input_inbound_rules"></a> [inbound\_rules](#input\_inbound\_rules) | The inbound rules to apply to the NACL | <pre>list(object({<br/> cidr_block = string<br/> from_port = number<br/> icmp_code = optional(number, 0)<br/> icmp_type = optional(number, 0)<br/> ipv6_cidr_block = optional(string, null)<br/> protocol = optional(number, -1)<br/> rule_action = string<br/> rule_number = number<br/> to_port = number<br/> }))</pre> | `[]` | no |
18-
| <a name="input_outbound_rules"></a> [outbound\_rules](#input\_outbound\_rules) | The outbound rules to apply to the NACL | <pre>list(object({<br/> cidr_block = string<br/> from_port = number<br/> icmp_code = optional(number, 0)<br/> icmp_type = optional(number, 0)<br/> ipv6_cidr_block = optional(string, null)<br/> protocol = optional(number, -1)<br/> rule_action = string<br/> rule_number = number<br/> to_port = number<br/> }))</pre> | `[]` | no |
17+
| <a name="input_inbound_rules"></a> [inbound\_rules](#input\_inbound\_rules) | The inbound rules to apply to the NACL | <pre>list(object({<br/> cidr_block = string<br/> from_port = optional(number, null)<br/> icmp_code = optional(number, 0)<br/> icmp_type = optional(number, 0)<br/> ipv6_cidr_block = optional(string, null)<br/> protocol = optional(number, -1)<br/> rule_action = optional(string, "allow")<br/> rule_number = number<br/> to_port = optional(number, nu)<br/> }))</pre> | `[]` | no |
18+
| <a name="input_outbound_rules"></a> [outbound\_rules](#input\_outbound\_rules) | The outbound rules to apply to the NACL | <pre>list(object({<br/> cidr_block = string<br/> from_port = optional(number, null)<br/> icmp_code = optional(number, 0)<br/> icmp_type = optional(number, 0)<br/> ipv6_cidr_block = optional(string, null)<br/> protocol = optional(number, -1)<br/> rule_action = optional(string, "allow")<br/> rule_number = number<br/> to_port = optional(number, null)<br/> }))</pre> | `[]` | no |
1919

2020
## Outputs
2121

modules/nacls/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ variable "inbound_rules" {
2323
description = "The inbound rules to apply to the NACL"
2424
type = list(object({
2525
cidr_block = string
26-
from_port = number
26+
from_port = optional(number, null)
2727
icmp_code = optional(number, 0)
2828
icmp_type = optional(number, 0)
2929
ipv6_cidr_block = optional(string, null)
3030
protocol = optional(number, -1)
31-
rule_action = string
31+
rule_action = optional(string, "allow")
3232
rule_number = number
33-
to_port = number
33+
to_port = optional(number, nu)
3434
}))
3535
default = []
3636
}
@@ -39,14 +39,14 @@ variable "outbound_rules" {
3939
description = "The outbound rules to apply to the NACL"
4040
type = list(object({
4141
cidr_block = string
42-
from_port = number
42+
from_port = optional(number, null)
4343
icmp_code = optional(number, 0)
4444
icmp_type = optional(number, 0)
4545
ipv6_cidr_block = optional(string, null)
4646
protocol = optional(number, -1)
47-
rule_action = string
47+
rule_action = optional(string, "allow")
4848
rule_number = number
49-
to_port = number
49+
to_port = optional(number, null)
5050
}))
5151
default = []
5252
}

0 commit comments

Comments
 (0)