add firewall enforcement variable to VPC

This commit is contained in:
Fawzi
2023-04-10 01:28:12 +10:00
parent b1921c9a21
commit db3c48736c
3 changed files with 37 additions and 23 deletions

View File

@@ -51,6 +51,17 @@ variable "dns_policy" {
default = null
}
variable "firewall_enforcement_order" {
description = "Order that Firewall Rules and Firewall Policies are evaluated. Can be either 'BEFORE_CLASSIC_FIREWALL' or 'AFTER_CLASSIC_FIREWALL'."
type = string
default = "AFTER_CLASSIC_FIREWALL"
validation {
condition = var.firewall_enforcement_order == "BEFORE_CLASSIC_FIREWALL" || var.firewall_enforcement_order == "AFTER_CLASSIC_FIREWALL"
error_message = "Enforcement order must be BEFORE_CLASSIC_FIREWALL or AFTER_CLASSIC_FIREWALL."
}
}
variable "mtu" {
description = "Maximum Transmission Unit in bytes. The minimum value for this field is 1460 (the default) and the maximum value is 1500 bytes."
type = number