Skip to content
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

missing azurerm_route_table_association resource #1462

Closed
bernadinm opened this issue Jun 28, 2018 · 2 comments
Closed

missing azurerm_route_table_association resource #1462

bernadinm opened this issue Jun 28, 2018 · 2 comments

Comments

@bernadinm
Copy link

Today, we cannot associate an azurerm_route_table to an azurerm_subnet in terraform for a resource created by another terraform module.

It is possible to associate routes within AWS using route_table_association: https://www.terraform.io/docs/providers/aws/r/route_table_association.html

For Azure we need one as well.

Terraform Version

$ terraform -v
Terraform v0.11.7
+ provider.azurerm v1.7.0

Affected Resource(s)

  • azurerm_subnet
  • azurerm_route_table_association (missing resource)

Terraform Configuration Files

data "azurerm_subnet" "public" {
  name                 = "mysubnet"
  virtual_network_name = "some-resource-group"
}

data "azurerm_route_table" "test" {
  name                = "myroutetable"
  resource_group_name = "some-resource-group"
}

resource "azurerm_route_table_association" "a" {
  subnet_id      = "${data.azurerm_subnet.public.id}"
  route_table_id = "${data.azurerm_route_table.test.id}"
}

Debug Output

Expected Behavior

It would have associated the terraform the azurerm_route_table with the azurerm_subnet.

Actual Behavior

This resource doesn't exist

Steps to Reproduce

  1. terraform apply

Important Factoids

References

#1337 - broken data azurerm_subnet route_table_id: not functioning

@tombuildsstuff
Copy link
Contributor

hi @bernadinm

Thanks for opening this issue :)

Support for this has been added in #1933 and is now available in the azurerm_subnet_route_table_association resource - which shipped in v1.17 of the AzureRM Provider.

Thanks!

@ghost
Copy link

ghost commented Mar 5, 2019

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!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants