diff --git a/modules/terraform-aws-firewall/README.md b/modules/terraform-aws-firewall/README.md index 045b318..c4397d0 100644 --- a/modules/terraform-aws-firewall/README.md +++ b/modules/terraform-aws-firewall/README.md @@ -51,10 +51,8 @@ No modules. | [firewall\_policy\_name](#input\_firewall\_policy\_name) | Name of the Firewall Policy. | `string` | n/a | yes | | [firewall\_subnet\_ids](#input\_firewall\_subnet\_ids) | List of subnet ids to assign to the Firewall. | `list(string)` | n/a | yes | | [network\_vpc\_id](#input\_network\_vpc\_id) | VPC ID for where the Networking components are running | `string` | n/a | yes | -| [aws\_region](#input\_aws\_region) | AWS region, used in Domain allowlist configuration files. If not provided will perform lookup of aws\_region data source. | `string` | `null` | no | | [cdp\_firewall\_domain\_allowlist](#input\_cdp\_firewall\_domain\_allowlist) | Domain allowlist for CDP Rule Group. | `list(string)` |
[| no | | [cdp\_fw\_rule\_group\_capacity](#input\_cdp\_fw\_rule\_group\_capacity) | Capacity (maximum number of operating resources) for the CDP Firewall Rule Group | `number` | `300` | no | -| [cdp\_region](#input\_cdp\_region) | CDP Control Plane region, used in Proxy Whitelist configuration files. | `string` | `"us-west-1"` | no | | [firewall\_logging\_config](#input\_firewall\_logging\_config) | Logging config for cloudwatch logs created for network Firewall | `map(any)` |
"cloudera.com"
]
{| no | | [route\_tables\_to\_update](#input\_route\_tables\_to\_update) | List of any route tables to update to target the Firewall Endpoint |
"alert": {
"retention_in_days": 3
},
"flow": {
"retention_in_days": 1
}
}
list(object({| `[]` | no | | [tags](#input\_tags) | Tags applied to provisioned resources | `map(any)` | `{}` | no | diff --git a/modules/terraform-aws-firewall/variables.tf b/modules/terraform-aws-firewall/variables.tf index cea6aa5..c0e56f9 100644 --- a/modules/terraform-aws-firewall/variables.tf +++ b/modules/terraform-aws-firewall/variables.tf @@ -33,6 +33,11 @@ variable "cdp_firewall_rule_group_name" { type = string description = "Name of the CDP Rule Group." + + validation { + condition = (length(var.cdp_firewall_rule_group_name) >= 1 && length(var.cdp_firewall_rule_group_name) <= 64) + error_message = "The length of cdp_firewall_rule_group_name must be between 1 and 64 characters." + } } variable "cdp_firewall_domain_allowlist" { @@ -52,6 +57,11 @@ variable "firewall_policy_name" { type = string description = "Name of the Firewall Policy." + + validation { + condition = (length(var.firewall_policy_name) >= 1 && length(var.firewall_policy_name) <= 128) + error_message = "The length of firewall_policy_name must be between 1 and 128 characters." + } } # ------- Firewall ------- @@ -59,6 +69,11 @@ variable "firewall_name" { type = string description = "Name of the Firewall." + + validation { + condition = (length(var.firewall_name) >= 1 && length(var.firewall_name) <= 256) + error_message = "The length of firewall_name must be between 1 and 256 characters." + } } variable "firewall_subnet_ids" { diff --git a/modules/terraform-aws-nfw-vpc/README.md b/modules/terraform-aws-nfw-vpc/README.md index 95f4983..85578ba 100644 --- a/modules/terraform-aws-nfw-vpc/README.md +++ b/modules/terraform-aws-nfw-vpc/README.md @@ -82,7 +82,6 @@ No modules. | [nat\_subnet\_route\_tables](#output\_nat\_subnet\_route\_tables) | List of IDs of the routes tables associated with the NAT subnets | | [nat\_subnets](#output\_nat\_subnets) | All details of the NAT subnets | | [tgw\_subnet\_ids](#output\_tgw\_subnet\_ids) | The IDs of Transit Gateway subnets | -| [tgw\_subnet\_offset](#output\_tgw\_subnet\_offset) | n/a | | [tgw\_subnet\_route\_tables](#output\_tgw\_subnet\_route\_tables) | List of IDs of the routes tables associated with the Transit Gateway subnets | | [tgw\_subnets](#output\_tgw\_subnets) | All details of the Transit Gateway subnets | | [vpc\_cidr\_blocks](#output\_vpc\_cidr\_blocks) | CIDR Block Associations for the VPC | diff --git a/modules/terraform-aws-nfw-vpc/variables.tf b/modules/terraform-aws-nfw-vpc/variables.tf index 558a3dc..0539fb5 100644 --- a/modules/terraform-aws-nfw-vpc/variables.tf +++ b/modules/terraform-aws-nfw-vpc/variables.tf @@ -17,6 +17,10 @@ variable "vpc_name" { description = "Name of the VPC" + validation { + condition = length(var.vpc_name) <= 64 + error_message = "The length of vpc_name must be 64 characters or less." + } } variable "vpc_cidr" {
route_tables = list(string)
availability_zones = optional(list(string))
destination_cidr_block = string
}))