-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
panic: not a collection type (regression between 13.1 and 13.0) #26011
Comments
Same error here. data "azurerm_subscription" "current" {} |
Get this error with Azure AD provider when using 13.1 goroutine 5859 [running]: |
I can confirm that removing the following from the code and using variables instead fixes the issue in terraform 0.13.1: |
It seems that any data "azurerm_*" is broken. I am trying to use data "azurerm_virtual_network" with the same error results. |
I also have this issue on a fresh project and have additional anecdotal info. First Also, since this is a fresh project I didn't notice any problems until I added data elements to my configuration. If i remove them then everything works fine again. My data elements use Terraform v0.13.1 |
Experiencing the same issue |
+1 here, same error. |
Thanks for all the reports! This is the simplest config I've been able to find that reproduces this crash: provider "azurerm" {
version = "~>2"
features {}
}
data "azurerm_client_config" "current" {}
|
We are using remote state that was overwritten with terraform_version 0.13.1 and as a result the terraform plan and apply fails. Trying to manually downgrade to terraform 0.13.0 with terraform state pull, editing the terraform_version and bumping the serial, followed by terraform state push, does not work.
Anyone has any ideas of workarounds since we are pretty much stuck with the state being locked to 0.13.1 ? |
Revert to the latest working version( PS: Fixed on the latest version( |
Thanks again to everyone who reported this. The bug is fixed in #26028 which will be released as part of v0.13.2. |
@swetli Any luck with this? I have excactly the same problem :/ |
For those having my issue - just manually edit the version to 0.13.0 and increase the serial in the azure blob storage to 0.13.0. |
Terraform 0.13.2 was released today: https://www.terraform.io/downloads.html |
When will the new version be available from apt? |
I managed to run a successful 0.13.2 Azure DevOps Pipeline. Previously failing on a terraform validate, now passing. |
@jwshive how did you manage to do that? I specified in my Pipeline.yaml file that terraform should use v 0.13.2 but during the run it uses v 0.13.1 and i got the error described above. |
In my build pipeline, I just have this and updated it accordingly
My release pipeline is as such
If you're doing testing on a non-master git branch and you update the yml on the devops web ui, you're updating the master branch but may be running against a non-master branch. That's about the only thing I can think of that might be different. |
You have to mention, that you have to install the Terraform Extension (the first one!) in order to get the task to work. |
Correct. I assumed that since they were getting the error for 0.13.1 that they had the extension installed. |
The wrong version is now default on the agent in azure devops. We run into this error today. Thanks to you, we could solve it. So thank you! |
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
Debug Output
Crash Output
Expected Behavior
Running the following command should succeed.
Actual Behavior
Crashes on 13.1, but doesn't on 13.0
Steps to Reproduce
az login
az account set -s <id>
terraform init -backend-config=storage_account_name=x -backend-config=container_name=state -backend-config=key=y-bootstrap.tfstate -backend-config=resource_group_name=z-state -backend-config=arm_subscription_id=subid
terraform plan --var-file ./dev.tfvars -out ./dev.tfplan
References
The text was updated successfully, but these errors were encountered: