bug: Terraform Bridge does not reliably perform Terraform state upgrades #923
Labels
area/tfbridge
Issues in pkg/tfbridge, which provides interop between Pulumi and TF providers
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
Milestone
@t0yv0 Found the issue. Inside the Pulumi stack the resource id is lower case on the
webHooks
element:/subscriptions/e5116c25-7bc9-4e96-9c3e-88257f68db7c/resourceGroups/RG-WKB-Test/providers/Microsoft.ContainerRegistry/registries/acr4189bf944305c36f/webhooks/b1ec43f3ce50aab6
The parser inside the AzureRM Provider expects
webHooks
:The team introduced the change with:
hashicorp/terraform-provider-azurerm@821ea0a
hashicorp/terraform-provider-azurerm#19507
No issue when using Terraform, because the team added a (silent) state migration.
Pulumi isn't aware of state migrations because it handles the state on it's own. But in such cases this is a real problem, because in the current case, I've to update the Pulumi state manually and correct the casing from
webhooks
towebHooks
.Originally posted by @tmeckel in #720 (comment)
Affected versions: Upgrade from Azure Classic 5.16.0 to 5.38.0
Steps to reproduce:
pulumi pre -r
will show an error about a the missingwebHooks
element.The text was updated successfully, but these errors were encountered: