From 89fac54b4bff968fd70beb1fe97f327f4df1e2fa Mon Sep 17 00:00:00 2001 From: Fredrik Klingenberg Date: Sun, 29 Oct 2023 11:58:28 +0100 Subject: [PATCH] feat: node nsg association Signed-off-by: Fredrik Klingenberg --- terraform/modules/aks/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/modules/aks/main.tf b/terraform/modules/aks/main.tf index 8fd22f5..b801ba5 100644 --- a/terraform/modules/aks/main.tf +++ b/terraform/modules/aks/main.tf @@ -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 {