Add lifecycle for create certificate before destroy
This commit is contained in:
parent
5807c03d88
commit
e24b993550
|
@ -88,7 +88,7 @@ resource "google_compute_region_ssl_certificate" "default" {
|
||||||
name = "${var.name}-${each.key}"
|
name = "${var.name}-${each.key}"
|
||||||
certificate = each.value.certificate
|
certificate = each.value.certificate
|
||||||
private_key = each.value.private_key
|
private_key = each.value.private_key
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
create_before_destroy = true
|
create_before_destroy = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue