Open gemmahou opened 11 months ago
I'm also wondering how the import format is generated? other similar resource like edgecontainer_nodepool does not have this issue: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/edgecontainer_node_pool#import
@gemmahou I wonder what update (from below error) is supposed to do for the import. Can you share your import command and the debug log?
Update call failed: error fetching....
@gemmahou is this still an issue?
Yes, let me try get you the log ASAP
I'm not super familiar with this API but per the service team, this resource has specific requirements to be created so I'm unsure if I'm able to create a resource and get the import log.
I found this official doc: https://cloud.google.com/distributed-cloud/edge/latest/docs/vpn-connections#status, as you can see, we have to specify the VPN_CONNECTION_NAME to be able to make the call, I assume terraform should follow the similar behavior?
I would transfer this ticket to the service team of this edge_container_vpn_connection resource.
@rayccz2 would you mind taking a look at this Terraform issue and see if you are able to share the import command and the debug log? Thanks!
@gemmahou The issue has been resolve with fix https://github.com/GoogleCloudPlatform/magic-modules/pull/9764
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
v5.1.0
Affected Resource(s)
google_edgecontainer_vpn_connection
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The import formats should accept projects/{{project}}/locations/{{location}}/vpnConnections/{{name}}
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/edgecontainer_vpn_connection#import
Actual Behavior
The import formats only accept projects/{{project}}/locations/{{location}}/vpnConnections
error message:
Steps to Reproduce
terraform apply
Important Factoids
References
0000
b/314287055