Skip to content

Commit

Permalink
fix(compute): Ignore disk changes for PD (#536)
Browse files Browse the repository at this point in the history
* fix(compute): Ignore disk changes for PD

* fix(compute): Update compute/add_persistent_disk/main.tf

---------

Co-authored-by: Roger Martinez <[email protected]>
  • Loading branch information
msampathkumar and rogerthatdev authored Nov 27, 2023
1 parent d1f4775 commit eeb8f17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion compute/add_persistent_disk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ resource "google_compute_instance" "test_node" {
network_interface {
network = "default"
access_config {
// Ephemeral IP
# Ephemeral IP
}
}

# Ignore changes for persistant disk attachments
lifecycle {
ignore_changes = [attached_disk]
}


}
# [END compute_attach_persistent_disk]
# [END compute_add_persistent_disk_parent_tag]

0 comments on commit eeb8f17

Please sign in to comment.