Add protection of network port destruction

This commit is contained in:
Magnus Andersson 2024-04-29 16:44:44 +02:00
parent 308b47d847
commit 185ce50831
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

12
dtca.tf
View file

@ -10,9 +10,9 @@ resource "openstack_networking_port_v2" "dtcaport" {
data.openstack_networking_secgroup_v2.allegress.id
]
admin_state_up = "true"
#lifecycle {
# prevent_destroy = true
#}
lifecycle {
prevent_destroy = true
}
}
@ -25,9 +25,9 @@ resource "openstack_networking_port_v2" "dtcadbport" {
data.openstack_networking_secgroup_v2.allegress.id
]
admin_state_up = "true"
#lifecycle {
# prevent_destroy = true
#}
lifecycle {
prevent_destroy = true
}
}
# Create volumes