-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
broken data azurerm_subnet route_table_id: not functioning #1337
Comments
hi @bernadinm Thanks for opening this issue, apologies for the delayed response here! Data Sources in Terraform are for referencing information about existing resources (e.g. getting the ID of a Storage Account) - rather than for modifying information about them. It's possible to import an existing resource into Terraform using the
Once the existing Resource has been imported into Terraform, it's then possible to change the value of this property via the Since this is a question about Terraform rather than a bug in Terraform - I'm going to close this issue for the moment (but we'll continue to take a look/respond 😄) Thanks! |
Thank you @tombuildsstuff, if this is the case then what we're missing is this resource here https://www.terraform.io/docs/providers/aws/r/route_table_association.html Do you recommend me making a separate feature request to ask for this resource in
|
hi @bernadinm Unfortunately the Azure API isn't designed in such a way that this is possible (in general the API generally prefers creating monolithic resources rather than composable resources) - whilst it technically is possible to implement this resource by hacking around the That said - I think this could make sense as a change but needs some more thought; would you mind opening a new issue specifically about this? Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Terraform Version
Affected Resource(s)
Debug Output
Panic Output
Expected Behavior
I expected that an existing subnet will be associated with an existing routing table.
Actual Behavior
Terraform failed.
Steps to Reproduce
terraform apply
Important Factoids
There does not see to be any other way to do this in terraform. The data resource is the most appropriate resource to achieve linking an existing subnet to a routing table. Currently it is possible within the Azure Portal UI to associate the subnet to the routing table, but not with terraform at the moment.
The text was updated successfully, but these errors were encountered: