Open kevinrosal opened 1 year ago
hi @kevinrosal thanks for submitting this issue. I think this is an as-expected behavior for the azurerm_subnet_route_table_association
will update the route_table resource (add subnet id to the route_table).
could you please confirm that you are using the latest terraform, as recommended in this document, this message should not be streamed when running terrafrom plan
. and if you are using an older version of terraform, please run terraform apply -refresh-only
to update the state file.
hi @wuxu92 thanks for the response, its a little annoying that everytime we add new subnets to the route table and re-run a plan it detects recent apply as changes outside of terraform. it causes confusions, cause in a real-world scenario after the apply. re-running plan should say no changes outside of terraform.
Yes i tested this with latest terraform, while i do know that doing terraform apply -refresh-only updates the state file but we really shouldnt we doing this everytime we do an apply.
Any updates on this? issue is still occuring
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 expected behavior is after the apply, no changes outside of terraform should be showing up.
Actual Behaviour
After doing the apply and the associations for the said subnets. re-running a plan or apply always shows the most recent apply as changes outside of terraform specifically for "subnets"
Steps to Reproduce
No response
Important Factoids
No response
References
No response