Skip to content

Commit 25576b5

Browse files
authored
fix: BUG-30444342 Place the dynamic property in lifecycle.ignore_changes since it cannot be modified after the resource is created (#45)
1 parent 235075c commit 25576b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

disks.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ resource "azapi_resource" "data_disks" {
1717
name = each.value.name != "" ? each.value.name : "${var.name}dataDisk${format("%02d", index(var.data_disk_params, each.key) + 1)}"
1818
parent_id = data.azurerm_resource_group.rg.id
1919
tags = each.value.tags
20+
21+
lifecycle {
22+
ignore_changes = [
23+
body.properties.dynamic,
24+
]
25+
}
2026
}

0 commit comments

Comments
 (0)