-
Notifications
You must be signed in to change notification settings - Fork 4.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
azurerm_route_table tries to recreate when it shouldn't #20745
Comments
#Workaround module code ` /* tags = var.tags } |
@evmimagina thanks for opening this issue. Could you provide the Terraform log and complete output in the screenshot below to help troubleshoot? |
Hi @sinbai , Sorry but I don't keep the failing executions and because I've applied the workaround , I wouldn't like to roll-back my code to reproduce the BUG again (I think it's the same as on the tracked request: #19182). This is not an issue, it's a bug, I think you can reproduce it just trying to create a route with the following config: ` route { } The first "apply" execution will be successful but during the next "apply" it will fail because it tries to replace something that it shouldn't (as you can see on the screenshot). |
Hi @evmimagina , thanks for your quick reply. Unfortunately, I could not repro it by the following tf config, could you repro with it on your side? If yes, could you share the Terraform log and complete output to help troubleshoot?
|
Thanks for taking the time to submit this. @sinbai was unable to reproduce this behavior. We’re going to close this issue for now, but if you run into this again with the latest Terraform and Provider versions, please feel free to open a new issue. |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
latest
AzureRM Provider Version
latest
Affected Resource(s)/Data Source(s)
azurerm_route_table
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
the route is created correctly the first time, the second time shouldn't try to recreate it again.
Actual Behaviour
the second time we run a terraform apply, it tries to recreate the routes, it fails with those routes that don't use the next_hop_in_ip_address property.
We've tried to set for next_hop_in_ip_address a value of "", but then it fails because is not an accepted value.
Steps to Reproduce
No response
Important Factoids
No response
References
Maybe yes, I have searched for this and it seems they might be related as there are problems with the azurerm_route_table but I don't think they look exactly the same. This looks very similar to the issue I'm raising: #19182
The text was updated successfully, but these errors were encountered: