Skip to content

Commit af4e73d

Browse files
authored
Add new variable pip_sku (#33)
* 0.13 TF upgrade * update * update * update
1 parent e691dae commit af4e73d

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ module "mylb" {
101101
frontend_private_ip_address_allocation = "Static"
102102
frontend_private_ip_address = "10.0.1.6"
103103
lb_sku = "Standard"
104+
pip_sku = "Standard" #`pip_sku` must match `lb_sku`
104105
105106
remote_port = {
106107
ssh = ["Tcp", "22"]

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ resource "azurerm_public_ip" "azlb" {
99
resource_group_name = data.azurerm_resource_group.azlb.name
1010
location = coalesce(var.location, data.azurerm_resource_group.azlb.location)
1111
allocation_method = var.allocation_method
12+
sku = var.pip_sku
1213
tags = var.tags
1314
}
1415

test/fixture/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module "mylb" {
1919
frontend_private_ip_address_allocation = "Static"
2020
frontend_private_ip_address = "10.0.1.6"
2121
lb_sku = "Standard"
22+
pip_sku = "Standard"
2223

2324
remote_port = {
2425
ssh = ["Tcp", "22"]

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,9 @@ variable "lb_probe" {
9494
type = map(any)
9595
default = {}
9696
}
97+
98+
variable "pip_sku" {
99+
description = "(Optional) The SKU of the Azure Public IP. Accepted values are Basic and Standard."
100+
type = string
101+
default = "Basic"
102+
}

0 commit comments

Comments
 (0)