adding stack_type to resource ha_vpn_gateway
provider wants to recreate resource version 4.61.0
#14328
Labels
ha_vpn_gateway
provider wants to recreate resource version 4.61.0
#14328
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
version 4.61.0 adds stack_type to resource `ha_vpn_gateway, but wants to destroy and recreate the vpn_gateway resource.
resource "google_compute_ha_vpn_gateway" "vpn_gateway" {
provider = google-beta
name = each.value.gateway
network = each.value.network
region = each.value.region
project = each.value.project
}
Debug Output
Panic Output
Expected Behavior
~ resource "google_compute_ha_vpn_gateway" "vpn_gateway" {
19:05:13 ~ id = "projects/xxx-xx-xxx/regions/europe-west2/vpnGateways/xxx-mgmt-bld-xxx-mg-prod-cxx" -> (known after apply)
19:05:13 name = "xxx-mgmt-bld-xxx-mg-prod-cxx"
19:05:13
~ network = "https://www.googleapis.com/compute/v1/projects/xxx-xx-xxx/global/networks/mgmt-bld-xxx-mg-prod" -> "mgmt-bld-xxx-mg-prod"
19:05:13 ~ self_link = "https://www.googleapis.com/compute/v1/projects/xxx-xx-xxx/regions/europe-west2/vpnGateways/xxx-mgmt-bld-xxx-mg-prod-cxx" -> (known after apply)
19:05:13 + stack_type = "IPV4_ONLY"
19:05:13 # (2 unchanged attributes hidden)
19:05:13
19:05:13 ~ vpn_interfaces {
19:05:13 ~ id = 0 -> (known after apply)
19:05:13 + interconnect_attachment = (known after apply)
19:05:13 ~ ip_address = "x5.xxx.xxx.xxx" -> (known after apply)
19:05:13 }
19:05:13 - vpn_interfaces {
19:05:13 - id = 1 -> null
19:05:13 - ip_address = "x5.xxx.xxx.xxx" -> null
19:05:13 }
19:05:13 }
19:05:13
Actual Behavior
-/+ resource "google_compute_ha_vpn_gateway" "vpn_gateway" {
19:05:13 ~ id = "projects/xxx-xx-xxx/regions/europe-west2/vpnGateways/xxx-mgmt-bld-xxx-mg-prod-cxx" -> (known after apply)
19:05:13 name = "xxx-mgmt-bld-xxx-mg-prod-cxx"
19:05:13
~ network = "https://www.googleapis.com/compute/v1/projects/xxx-xx-xxx/global/networks/mgmt-bld-xxx-mg-prod" -> "mgmt-bld-xxx-mg-prod"
19:05:13 ~ self_link = "https://www.googleapis.com/compute/v1/projects/xxx-xx-xxx/regions/europe-west2/vpnGateways/xxx-mgmt-bld-xxx-mg-prod-cxx" -> (known after apply)
19:05:13 + stack_type = "IPV4_ONLY" # forces replacement
19:05:13 # (2 unchanged attributes hidden)
19:05:13
19:05:13 ~ vpn_interfaces {
19:05:13 ~ id = 0 -> (known after apply)
19:05:13 + interconnect_attachment = (known after apply)
19:05:13 ~ ip_address = "x5.xxx.xxx.xxx" -> (known after apply)
19:05:13 }
19:05:13 - vpn_interfaces {
19:05:13 - id = 1 -> null
19:05:13 - ip_address = "x5.xxx.xxx.xxx" -> null
19:05:13 }
19:05:13 }
19:05:13
Steps to Reproduce
Terraform forces a replacement of the resource, which is not expected as the default if not specified according to the google API docs below is IPV4_ONLY, so this addition isn't really changing any thing other than updating the config in the remote state
https://cloud.google.com/compute/docs/reference/rest/v1/vpnGateways
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: