Skip to content

Commit

Permalink
Merge pull request #161 from dkistner/prepare-tf-azurerm-2
Browse files Browse the repository at this point in the history
Prepare upgrade to Terraform azurerm v2.x.x
  • Loading branch information
dkistner authored Sep 10, 2020
2 parents dca9c6a + 80ac647 commit c43ad0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/internal/azure-infra/templates/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ resource "azurerm_route_table" "workers" {
{{- end}}
}

resource "azurerm_subnet_route_table_association" "workers-rt-subnet-association" {
subnet_id = azurerm_subnet.workers.id
route_table_id = azurerm_route_table.workers.id
}

resource "azurerm_network_security_group" "workers" {
name = "{{ required "clusterName is required" .Values.clusterName }}-workers"
location = "{{ required "azure.region is required" .Values.azure.region }}"
Expand All @@ -73,6 +78,11 @@ resource "azurerm_network_security_group" "workers" {
{{- end}}
}

resource "azurerm_subnet_network_security_group_association" "workers-nsg-subnet-association" {
subnet_id = azurerm_subnet.workers.id
network_security_group_id = azurerm_network_security_group.workers.id
}

{{ if .Values.create.natGateway -}}
#===============================================
#= NAT Gateway
Expand Down

0 comments on commit c43ad0f

Please sign in to comment.