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

Route Table Inquiry #9

Open
crisarceramos opened this issue Jan 3, 2018 · 2 comments
Open

Route Table Inquiry #9

crisarceramos opened this issue Jan 3, 2018 · 2 comments

Comments

@crisarceramos
Copy link

Hi Daniel,
Thanks for this tutorial. Just want to confirm, Route Table creation is not included in the tutorial right? Coz the az resource list is returning nothing. So we have to manually create it?

Cheers,
Cris

@jgrossmac
Copy link

jgrossmac commented Jul 9, 2018

Yes it appears you need to create the route table as well. You will also need to make sure your command for null_resource.fix_routetable outputs in json.
az resource list --resource-group <RESOURCE_GROUP> --resource-type Microsoft.Network/routeTables --output json | jq -r '.[] | .id'

@jgrossmac
Copy link

jgrossmac commented Jul 9, 2018

My route table configs looks like this:

// Azure Route Table
resource "azurerm_route_table" "default" {
name = "${azurerm_virtual_network.default.name}_rt"
location = "${var.region}"
resource_group_name = "${var.cluster_name}-${random_integer.default.result}"
disable_bgp_route_propagation = false
depends_on = ["azurerm_virtual_network.default"]

tags {
Cluster = "${var.cluster_name}-${random_integer.default.result}"
Environment = "${terraform.workspace}"
ManagedBy = "Terraform"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants