azurerm: AzurermProviderFeatures Value is not an array #3774
Labels
bug
Something isn't working
new
Un-triaged issue
pre-built providers
Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager
Expected Behavior
Upgrading from github.com/cdktf/cdktf-provider-azurerm-go/azurerm/v12/provider to github.com/cdktf/cdktf-provider-azurerm-go/azurerm/v13/provider works without issues.
Actual Behavior
Upgrading from v12 to v13 results in the following errors:
These errors can be resolved after
Features
is updated from&provider.AzurermProviderFeatures{}
to[]*provider.AzurermProviderFeatures{}
. However, this change results in a differnt error of:Steps to Reproduce
cdktf deploy
to see panicFeatures
from&provider.AzurermProviderFeatures{}
to[]*provider.AzurermProviderFeatures{}
cdktf deploy
to see error offeatures
argument missingBroken code for v13:
Working code for v12:
Versions
language: go
cdktf-cli: 0.20.10
node: v23.1.0
cdktf: 0.20.9
constructs: 10.4.2
jsii: 1.105.0
terraform: 1.9.8
arch: arm64
os: darwin 24.0.0
go: go version go1.23.3 darwin/arm64
providers
github.com/cdktf/cdktf-provider-azurerm-go/azurerm (PREBUILT)
terraform provider version: 4.10.0
prebuilt provider version: 13.10.0
cdktf version: ^0.20.0
Providers
┌───────────────┬──────────────────┬─────────┬────────────┬────────────────────────────────────────────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────────────────────────────┼─────────────────┤
│ azurerm │ 4.10.0 │ ^0.20.0 │ │ github.com/cdktf/cdktf-provider-azurerm-go/azurerm │ 13.10.0 │
└───────────────┴──────────────────┴─────────┴────────────┴────────────────────────────────────────────────────┴─────────────────┘
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
The original error appears to be caused by the changes introduced within https://github.com/cdktf/cdktf-provider-azurerm-go/blob/main/azurerm/provider/AzurermProvider__checks.go#L111-L137.
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: