Skip to content

Commit

Permalink
feat: node nsg association
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Klingenberg <[email protected]>
  • Loading branch information
fredrkl committed Oct 29, 2023
1 parent 2f26bd2 commit 89fac54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/modules/aks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ resource "azurerm_network_security_group" "example" {
resource_group_name = var.resource_group.name
}

resource "azurerm_subnet_network_security_group_association" "example" {
subnet_id = azurerm_subnet.aks-data-plane.id
network_security_group_id = azurerm_network_security_group.example.id
}

terraform {
required_version = ">= 1.6"
required_providers {
Expand Down

0 comments on commit 89fac54

Please sign in to comment.