Prevent unintentional recreation when Image changes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2024-06-29 20:56:15 -05:00
parent 345ea61288
commit f0cb096503
2 changed files with 7 additions and 2 deletions

View File

@@ -2,6 +2,11 @@ resource "digitalocean_droplet" "this" {
backups = "true"
image = var.image_name
ipv6 = "true"
lifecycle {
ignore_changes = [
image,
]
}
monitoring = "true"
name = "${var.host_name}.${var.domain_name}"
region = var.region