Skip to content

Commit 3729841

Browse files
Fix identity block and NAT gateway prefix length documentation
Agent-Logs-Url: https://github.com/localstack/localstack-azure-samples/sessions/e100db37-5dea-4c4e-a4aa-4aad5ef381bd Co-authored-by: paolosalvatori <1658419+paolosalvatori@users.noreply.github.com>
1 parent 88058dd commit 3729841

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

samples/web-app-custom-image/python/terraform/modules/nat_gateway/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "public_ip_prefix_name" {
4949
}
5050

5151
variable "public_ip_prefix_length" {
52-
description = "(Required) The length of the public IP prefix to create and associate with the NAT Gateway. Must be between 28 and 30."
52+
description = "(Required) The length of the public IP prefix to create and associate with the NAT Gateway. Must be between 28 and 31."
5353
type = number
5454
default = 31
5555
}

samples/web-app-custom-image/python/terraform/modules/web_app/main.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ resource "azurerm_linux_web_app" "example" {
99
client_affinity_enabled = false
1010
tags = var.tags
1111

12-
identity {
13-
type = "UserAssigned"
14-
identity_ids = var.managed_identity_id != null ? [var.managed_identity_id] : []
12+
dynamic "identity" {
13+
for_each = var.managed_identity_id != null ? [1] : []
14+
content {
15+
type = "UserAssigned"
16+
identity_ids = [var.managed_identity_id]
17+
}
1518
}
1619

1720
site_config {

0 commit comments

Comments
 (0)