Skip to content

Commit

Permalink
feat: Compatibility with AzureRM 4
Browse files Browse the repository at this point in the history
BREAKING CHANGE: private_endpoint_network_policies is now a string which can take the values Disabled, Enabled, NetworkSecurityGroupEnabled and RouteTableEnabled
  • Loading branch information
jlauert authored and dploeger committed Sep 12, 2024
1 parent c32d01a commit bc20fa7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ map(object({
name = string,
actions = list(string),
}))
private_endpoint_network_policies_enabled = bool
private_endpoint_network_policies = string
rules = map(object({
priority = number,
source_address_prefixes = list(string),
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ resource "azurerm_subnet" "subnet" {
}
}

private_endpoint_network_policies_enabled = each.value.private_endpoint_network_policies_enabled
private_endpoint_network_policies = each.value.private_endpoint_network_policies
}
8 changes: 4 additions & 4 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ variable "peering_remote_virtual_network_id" {

variable "subnets" {
type = map(object({
cidr = list(string)
service_endpoints = list(string)
cidr = list(string)
service_endpoints = list(string)
service_delegations = map(object({
name = string,
actions = list(string),
}))
private_endpoint_network_policies_enabled = bool
rules = map(object({
private_endpoint_network_policies = string
rules = map(object({
priority = number,
source_address_prefixes = list(string),
source_port_ranges = list(string),
Expand Down

0 comments on commit bc20fa7

Please sign in to comment.