You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a crash while running terraform with a datasource from the Google provider. I'm not sure wether this is a terraform bug, or a google provider bug, but since the crash log instructed me to post here, so here I am.
I got the crash while setting the self_link attribute in the google_compute_subnetwork datasource to the value I get from the gcp console. If I use the value from the terraform state, it works as expected. The difference i can see is that the one from the tfstate includes "https://www.googleapis.com/compute/v1/ , whereas the one from the console does not.
Replacing the self_link with the fqdn "https://www.googleapis.com/compute/v1/projects/some-project/regions/europe-west1/subnetworks/subnetwork" does not crash terraform.
References
None that I could find
The text was updated successfully, but these errors were encountered:
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 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Dec 19, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @albertomardomingo as hashicorp/terraform#23356. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi!
I'm getting a crash while running terraform with a datasource from the Google provider. I'm not sure wether this is a terraform bug, or a google provider bug, but since the crash log instructed me to post here, so here I am.
I got the crash while setting the
self_link
attribute in thegoogle_compute_subnetwork
datasource to the value I get from the gcp console. If I use the value from the terraform state, it works as expected. The difference i can see is that the one from the tfstate includes"https://www.googleapis.com/compute/v1/
, whereas the one from the console does not.Terraform Version
Terraform Configuration Files
Debug Output
Uploaded encrypted with hashicorp's public key to
https://gist.github.com/albertomardomingo/7373272783116640add3a0735d0fa408
Crash Output
Uploaded encrypted with hashicorp's public key to
https://gist.github.com/albertomardomingo/7373272783116640add3a0735d0fa408
Expected Behavior
I would expect either an error about the self_link being mal formed, or it being smart enough to recognize the format.
Actual Behavior
Terraform crashed when not providing
https://www.googleapis.com/compute/v1/projects/<redacted>/regions/europe-west1/subnetworks/<redacted>
Steps to Reproduce
This hcl crashed every time for me, without having to provide a valid project, running the plan:
Running
the plan crashes.
Additional Context
Replacing the self_link with the fqdn
"https://www.googleapis.com/compute/v1/projects/some-project/regions/europe-west1/subnetworks/subnetwork"
does not crash terraform.References
None that I could find
The text was updated successfully, but these errors were encountered: