Merge pull request #1839 from apichick/net-lb-app-ext-cert-fix
Added create_before_destroy = true for self-managed certificates
This commit is contained in:
commit
7a15eec507
|
@ -53,6 +53,9 @@ resource "google_compute_ssl_certificate" "default" {
|
||||||
name = "${var.name}-${each.key}"
|
name = "${var.name}-${each.key}"
|
||||||
certificate = trimspace(each.value.certificate)
|
certificate = trimspace(each.value.certificate)
|
||||||
private_key = trimspace(each.value.private_key)
|
private_key = trimspace(each.value.private_key)
|
||||||
|
lifecycle {
|
||||||
|
create_before_destroy = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_managed_ssl_certificate" "default" {
|
resource "google_compute_managed_ssl_certificate" "default" {
|
||||||
|
|
Loading…
Reference in New Issue