Skip to content

Commit 86fe33e

Browse files
Myroslav LevchykMyroslav Levchyk
Myroslav Levchyk
authored and
Myroslav Levchyk
committed
fix: remove deprecated parameters
1 parent 1a98ee2 commit 86fe33e

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

main.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
resource "azurerm_subnet" "this" {
22
count = var.export_subnet_id == null ? 1 : 0
33

4-
name = var.name
5-
resource_group_name = var.resource_group
6-
virtual_network_name = var.network
7-
private_endpoint_network_policies_enabled = var.private_endpoint_network_policies_enabled
8-
service_endpoints = var.service_endpoints
9-
address_prefixes = [var.cidr]
4+
name = var.name
5+
resource_group_name = var.resource_group
6+
virtual_network_name = var.network
7+
private_endpoint_network_policies = var.private_endpoint_network_policies
8+
private_link_service_network_policies_enabled = var.private_link_service_network_policies_enabled
9+
service_endpoints = var.service_endpoints
10+
address_prefixes = [var.cidr]
1011

1112
dynamic "delegation" {
1213
for_each = var.delegations

variables.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ variable "cidr" {
1818
description = "The address prefixes to use for the subnet"
1919
}
2020

21-
variable "private_endpoint_network_policies_enabled" {
21+
variable "private_endpoint_network_policies" {
22+
type = string
23+
description = "Enable or Disable network policies for the private endpoint on the subnet. Possible values: [Disabled|Enabled|NetworkSecurityGroupEnabled|RouteTableEnabled]"
24+
default = "Enabled"
25+
}
26+
27+
variable "private_link_service_network_policies_enabled" {
2228
type = bool
23-
description = "Enable or Disable network policies for the private link endpoint on the subnet. Setting this to true will Disable the policy and setting this to false will Enable the policy: [true|false]"
29+
description = "Enable or Disable network policies for the private link service on the subnet. Setting this to true will Enable the policy and setting this to false will Disable the policy: [true|false]"
2430
default = true
2531
}
2632

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = ">= 3.40.0"
7+
version = ">= 3.104.2"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)