Closed sebglon closed 4 years ago
It seem fixed on the 2.17 but not reported on 3.x https://github.com/terraform-providers/terraform-provider-google/pull/4503
Fix is available here : https://github.com/GoogleCloudPlatform/magic-modules/pull/3454
Thanks for the PR, this issue will be closed after the PR approved/merged
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
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
$ terraform versionTerraform v0.12.23
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
The import populate the
advertise_mode
Actual Behavior
The import not populate the
advertise_mode
field asDEFAULT
and the next plan want to re-create the resource to set theSteps to Reproduce
terraform import module.project.google_compute_router_peer.gcp-router2-peer[0] my-project/europe-west3/gcp-router2-europe-west3/gcp-to-aws-bgp2- europe-west3
Import successful!
The resources that were imported are shown above. These resources are now in your Terraform state and will henceforth be managed by Terraform.
module.project.google_compute_router_peer.gcp-router2-peer[0] must be replaced
-/+ resource "google_compute_router_peer" "gcp-router2-peer" {
advertise_mode = "DEFAULT" # forces replacement
advertised_groups = [] -> null
advertised_route_priority = 0 -> null ~ id = "projects/my-projectv/regions/europe-west3/routers/gcp-router2-europe-west3/gcp-to-aws-bgp2-europe-west3" -> (known after apply) interface = "gcp-to-aws-interface2-europe-west3" ~ ip_address = "1.1.1.1" -> (known after apply)
management_type = (known after apply) name = "gcp-to-aws-bgp2-europe-west3" peer_asn = 7224 peer_ip_address = "169.252.254.254" project = "my-project" region = "europe-west3" router = "gcp-router2-europe-west3"
timeouts {} }
Plan: 1 to add, 0 to change, 1 to destroy.