-
Notifications
You must be signed in to change notification settings - Fork 9.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_subnet does not track route_table_id association. #8227
Comments
The error is in the function resourceArmSubnetRead() . It doesn't have a section to read the subnet association from a routeTable object. |
Is this still an issue? P. |
Yes. You are unable to change the Network Security Group on a subnet after initial creation. |
Maybe see #9648 for more indepth information. |
@carinadigital I ran this test with the terraform code block at the bottom of this comment to exploit this bug. Terraform version
Reproduce StepsInitial Apply
Result: Updating ApplyUpdate Terraform to add new tags to the module.
Result: The Subnet is no longer associated to the Route Table (this is the bug). ❗️ Terraform Used
|
This issue came back and hit me again. Cheers! |
+1 Just tried to remove a route table association from a subnet via terraform, and terraform said no changes were necessary. |
…ng routing table references Minor cleanup of bug hashicorp#8227-related work
…ng routing table references Minor cleanup of bug hashicorp#8227-related work
…ng routing table references Minor cleanup of bug hashicorp#8227-related work
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.7.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The plan should detect that the subnet is not associated with the route table.
Actual Behavior
No differences were detected.
Steps to Reproduce
terraform apply
Portal; You can disassociate by drilling down through ResourceGroup->RouteTable->Subnets-> Click on ... to dissassociate.
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: