Open tamirkamara opened 2 years ago
@tamirkamara Thanks for bring it up. The identity block is empty in state after the creation and this caused the required property got an empty value. The depends_on
is not going to work since the resource already exists.
can you try partially update by running terraform plan -target="azurerm_eventgrid_topic.mytopic"
then terraform apply -target="azurerm_eventgrid_topic.mytopic"
? It should work
Thank you @xiaxyi. Your suggestion might be a good option for some cases but not for me - I don't control the calling process that issues the apply command, so it's not possible for me to introduce this intermediate step. I think this should be handled internally by Terraform somehow.
Is there an existing issue for this?
Community Note
Terraform Version
1.1.5
AzureRM Provider Version
3.11.0
Affected Resource(s)/Data Source(s)
azurerm_eventgrid_topic
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Plan succeed and azurerm_role_assignment.mytopic "waits" for the changes in azurerm_eventgrid_topic.mytopic
Actual Behaviour
The plan command fails
Steps to Reproduce
terraform plan
here.Important Factoids
No response
References
No response