-
Notifications
You must be signed in to change notification settings - Fork 4.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
Using features {} with azurerm provisioner < v2.0 causes crash. #5897
Comments
I'm having same issue. #5965 , Can someone help in looking at this issue. thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I didn't created them wantedly. But can you please explain how to reduce them to one instance. |
👋 hey folks Since the 2.x versions of the Azure Provider don't support Terraform 0.10/11 - as we have no plans to release further updates to the 1.x versions of the Azure Provider, unfortunately this isn't something we plan to patch. That said - it should be possible to work around this in one of two ways:
We'd recommend updating to Terraform 0.12 if possible - as mentioned above at this point in time our efforts are now focused on the latest version rather than Terraform 0.10/0.11 - however these older versions should continue working unless Azure changes the way the API works (as is the case with AKS). Since this should be fixed by updating I'm going to close this issue for the moment - however please let us know if you're still having issues after updating and we'll take another look Thanks! @Avani129 Providers need to be specified in the root module and then threaded through, there's an example of how to do that here: https://www.terraform.io/docs/configuration/providers.html#selecting-alternate-providers :) |
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! |
This issue was originally opened by @azilber as hashicorp/terraform#24211. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Crash Output
Crash Snippet
2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalConfigProvider, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalOpFilter, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [TRACE] [walkRefresh] Exiting eval tree: module.portal0.provider.azurerm 2020/02/25 22:47:07 [TRACE] vertex "module.portal0.provider.azurerm": visit complete 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.data.azurerm_image.custom" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.data.azurerm_subnet.main" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.provider.azurerm (close)" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "root" errored, so skipping 2020-02-25T22:47:07.197+0800 [DEBUG] plugin: plugin exitedExpected Behavior
"An execution plan has been generated and is shown below."
Actual Behavior
Crash
Steps to Reproduce
terraform init
terraform plan
Additional Context
The
features {}
block is an azurerm v2.0 feature. I had accidently left it in the provider section. Terraform misses this, and passes it along to the azurerm provider which causes it to crash.Terraform should be catching this and throwing an error.
The text was updated successfully, but these errors were encountered: