Skip to content

Commit

Permalink
remove defaults in lb vars
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehedgpeth committed Sep 15, 2023
1 parent 3821e9a commit b3c1f7e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ module "load_balancer" {
load_balancer_type = var.load_balancer_type
load_balancer_public = var.load_balancer_public
load_balancer_request_routing_rule_minimum_priority = var.load_balancer_request_routing_rule_minimum_priority
load_balancer_sku_capacity = var.load_balancer_sku_capacity
load_balancer_sku_name = var.load_balancer_sku_name
load_balancer_sku_tier = var.load_balancer_sku_tier
load_balancer_waf_firewall_mode = var.load_balancer_waf_firewall_mode
Expand Down
20 changes: 1 addition & 19 deletions modules/load_balancer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ variable "is_legacy_deployment" {
}

variable "tfe_subdomain" {
default = null
type = string
description = "Subdomain for TFE"
}

variable "active_active" {
default = true
type = bool
description = "True if TFE running in active-active configuration"
}
Expand All @@ -38,13 +36,11 @@ variable "enable_ssh" {
# DNS
# ---
variable "dns_create_record" {
default = true
type = bool
description = "If true, will create a DNS record. If false, no record will be created and IP of load balancer will instead be output."
}

variable "dns_external_fqdn" {
default = null
type = string
description = "External DNS FQDN should be supplied if dns_create_record is false"
}
Expand All @@ -57,7 +53,6 @@ variable "location" {
}

variable "zones" {
default = ["1", "2", "3"]
type = list(string)
description = "Azure zones to use for applicable resources"
}
Expand Down Expand Up @@ -97,7 +92,6 @@ variable "ca_certificate_secret" {
# Load balancer
# -------------
variable "load_balancer_type" {
default = "application_gateway"
type = string
description = "Expected value of 'application_gateway' or 'load_balancer'"

Expand All @@ -112,19 +106,16 @@ variable "load_balancer_type" {
}

variable "load_balancer_public" {
default = true
type = bool
description = "Load balancer will use public IP if true"
}

variable "load_balancer_enable_http2" {
default = true
type = bool
description = "Determine if HTTP2 enabled on Application Gateway"
}

variable "load_balancer_sku_name" {
default = "Standard_v2"
type = string
description = "The Name of the SKU to use for Application Gateway, Standard_v2 or WAF_v2 accepted"

Expand All @@ -139,7 +130,6 @@ variable "load_balancer_sku_name" {
}

variable "load_balancer_sku_tier" {
default = "Standard_v2"
type = string
description = "The Tier of the SKU to use for Application Gateway, Standard_v2 or WAF_v2 accepted"

Expand All @@ -154,37 +144,31 @@ variable "load_balancer_sku_tier" {
}

variable "load_balancer_waf_firewall_mode" {
default = "Prevention"
type = string
description = "The Web Application Firewall mode (Detection or Prevention)"
}

variable "load_balancer_waf_rule_set_version" {
default = "3.1"
type = string
description = "The Version of the Rule Set used for this Web Application Firewall. Possible values are 2.2.9, 3.0, and 3.1."
description = "The Version of the Rule Set used for this Web Application Firewall. Possible values are 2.2.9, 3.0, 3.1, and 3.2."
}

variable "load_balancer_waf_file_upload_limit_mb" {
default = 100
type = number
description = "The File Upload Limit in MB. Accepted values are in the range 1MB to 750MB for the WAF_v2 SKU, and 1MB to 500MB for all other SKUs. Defaults to 100MB."
}

variable "load_balancer_waf_max_request_body_size_kb" {
default = 128
type = number
description = "The Maximum Request Body Size in KB. Accepted values are in the range 1KB to 128KB. Defaults to 128KB."
}

variable "load_balancer_sku_capacity" {
default = 2
type = number
description = "The Capacity of the SKU to use for Application Gateway (1 to 125)"
}

variable "load_balancer_request_routing_rule_minimum_priority" {
default = 1000
type = number
description = "The minimum priority for request routing rule. Lower priotity numbered rules take precedence over higher priotity number rules."
validation {
Expand All @@ -204,7 +188,6 @@ variable "network_frontend_subnet_id" {
}

variable "network_private_ip" {
default = null
type = string
description = "(optional) Private IP address to use for LB/AG endpoint"
}
Expand All @@ -216,7 +199,6 @@ variable "network_frontend_subnet_cidr" {

# Tagging
variable "tags" {
default = {}
type = map(string)
description = "Map of tags for resource"
}
10 changes: 8 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@ variable "load_balancer_request_routing_rule_minimum_priority" {
}
}

variable "load_balancer_sku_capacity" {
default = 2
type = number
description = "The Capacity of the SKU to use for Application Gateway (1 to 125)"
}

variable "load_balancer_sku_name" {
default = "Standard_v2"
type = string
Expand Down Expand Up @@ -439,9 +445,9 @@ variable "load_balancer_waf_firewall_mode" {
}

variable "load_balancer_waf_rule_set_version" {
default = "3.1"
default = "3.2"
type = string
description = "The Version of the Rule Set used for this Web Application Firewall. Possible values are 2.2.9, 3.0, and 3.1."
description = "The Version of the Rule Set used for this Web Application Firewall. Possible values are 2.2.9, 3.0, 3.1, and 3.2."
}

variable "load_balancer_waf_file_upload_limit_mb" {
Expand Down

0 comments on commit b3c1f7e

Please sign in to comment.