Skip to content

Commit a742b87

Browse files
fix: ignore source_image_id change for smb/s3 protocol gateways existing VMs (CLOUD-3217)
1 parent a57dc02 commit a742b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/protocol_gateways/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ resource "azurerm_linux_virtual_machine" "this" {
199199
}
200200

201201
lifecycle {
202-
ignore_changes = [tags, custom_data]
202+
ignore_changes = [tags, custom_data, source_image_id]
203203
precondition {
204204
condition = var.protocol == "S3" ? var.gateways_number >= 1 : var.gateways_number >= 3 && var.gateways_number <= 8
205205
error_message = "The amount of protocol gateways should be at least 1 for S3 and at least 3 and at most 8 for SMB."

0 commit comments

Comments
 (0)