Skip to content

Commit

Permalink
Add support for storage blob network rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Oct 8, 2024
1 parent 18a3fe3 commit 618f0bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions terraform/azure/aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,15 @@ resource "azurerm_storage_account" "cluster_backup" {
account_replication_type = "LRS"
min_tls_version = "TLS1_2"
network_rules {
default_action = "Deny"
default_action = var.network_rules_default_action
ip_rules = []
private_link_access {
dynamic "private_link_access" {
for_each = var.cluster_backup_endpoint_resource_id != null ? [1] : []
content {
endpoint_resource_id = var.cluster_backup_endpoint_resource_id
endpoint_tenant_id = var.cluster_backup_endpoint_tenant_id
}
}
}

}
Expand Down
6 changes: 6 additions & 0 deletions terraform/azure/aks/variables-aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,10 @@ variable "azure_policy_enabled" {
description = "value to enable or disable azure policy"
type = bool
default = false
}

variable "network_rules_default_action" {
description = "Default action for network rules"
type = string
default = "Deny"
}

0 comments on commit 618f0bf

Please sign in to comment.