-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run 0.12upgrade #22020
Comments
Hi @hoagsie , Thanks for reporting this! I can confirm the crash with the config you've supplied. Having said that: Can you confirm that the code you attached is the same that you are using locally, and that it works in earlier versions of terraform? I can't run
The syntax error tells me that it's not a surprise that it's crashing - |
|
Modifying |
In some cases (see #22020 for a specific example), the parsed hilNode can be nil. This causes a series of panics. Instead, return an error and move on.
@mildwonkey , no, I haven't tried with other versions of terraform. I'm a newbie to the automated infrastructure world and 0.12 has been my introduction. I was trying to achieve the first goal of getting a map of what I already have in my environment. If it doesn't work with 0.11, I'm curious if this couldn't be a problem with the terraforming tool. Are there any supported solutions for mapping an existing environment into .tf or .tfstate files? |
I'm not familiar with the terraforming tool, but if that's what generated your configuration then yes, this is something it could possibly solve by adding a leading There are no official solutions for auto-generating configs based on existing resources at this time, sorry! |
In some cases (see #22020 for a specific example), the parsed hilNode can be nil. This causes a series of panics. Instead, return an error and move on.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform Configuration Files
https://github.com/hoagsie/scratch/blob/master/iamgp.tf.gpg
Crash Output
https://gist.github.com/hoagsie/435026027b568afb036b23cb0e169fbd
Expected Behavior
terraform 0.12upgrade
should have completed without error.Actual Behavior
The error in crash output happens.
Steps to Reproduce
terraform init
in directoryterraform 0.12upgrade
Additional Context
Using terraforming 0.18.0. Latest as of writing.
The text was updated successfully, but these errors were encountered: