Skip to content

Commit 96fca61

Browse files
Add ssl policy settings (#16)
1 parent df65c4b commit 96fca61

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

loadbalancer_private.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ resource "azurerm_application_gateway" "private" {
227227
}
228228
}
229229

230+
# SSL policy for the private application gateway
231+
ssl_policy {
232+
policy_type = var.ssl_policy_type
233+
policy_name = var.ssl_policy_name
234+
}
235+
230236
tags = var.tags
231237

232238
depends_on = [

loadbalancer_public.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ resource "azurerm_application_gateway" "public" {
229229
}
230230
}
231231

232+
# SSL policy for the public application gateway
233+
ssl_policy {
234+
policy_type = var.ssl_policy_type
235+
policy_name = var.ssl_policy_name
236+
}
237+
232238
tags = var.tags
233239

234240
depends_on = [

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,3 +407,15 @@ variable "private_endpoint_network_policies" {
407407
description = "Enable or Disable network policies for the private endpoint on the subnet. Possible values are Disabled, Enabled, NetworkSecurityGroupEnabled and RouteTableEnabled. Defaults to Enabled to keep same value as before introducing this paramater"
408408
default = "Enabled"
409409
}
410+
411+
variable "ssl_policy_name" {
412+
type = string
413+
description = "(Optional) The Name of the Policy e.g. AppGwSslPolicy20220101. Required if policy_type is set to Predefined. Possible values can change over time and are published here"
414+
default = "AppGwSslPolicy20220101"
415+
}
416+
417+
variable "ssl_policy_type" {
418+
type = string
419+
description = "(Optional) The Type of the Policy. Possible values are Predefined, Custom and CustomV2"
420+
default = "Predefined"
421+
}

0 commit comments

Comments
 (0)