Skip to content

Commit

Permalink
fix: Updated attribute 'private_endpoint_network_policies' (#39)
Browse files Browse the repository at this point in the history
* fix: Updated attribute 'private_endpoint_network_policies'

* fix: 'disable_bgp_route_propagation' attribute changed to 'bgp_route_propagation_enabled' in the route table resource

* fix: Changed the variable name for 'private_endpoint_network_policies'

* fix: updated the latest version in workflows

* fix: Changed the terraform version to 1.7.8
  • Loading branch information
ravimalvia10 authored Jul 19, 2024
1 parent 4bf1b05 commit edb92fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "azurerm_subnet" "subnet" {
service_endpoints = var.service_endpoints
service_endpoint_policy_ids = var.service_endpoint_policy_ids
private_link_service_network_policies_enabled = var.subnet_enforce_private_link_service_network_policies
private_endpoint_network_policies_enabled = var.subnet_enforce_private_link_endpoint_network_policies
private_endpoint_network_policies = var.private_endpoint_network_policies

dynamic "delegation" {
for_each = var.delegation
Expand Down Expand Up @@ -95,7 +95,7 @@ resource "azurerm_route_table" "rt" {
name = var.route_table_name == null ? format("%s-route-table", module.labels.id) : format("%s-%s-route-table", module.labels.id, var.route_table_name)
location = var.location
resource_group_name = var.resource_group_name
disable_bgp_route_propagation = var.disable_bgp_route_propagation
bgp_route_propagation_enabled = var.bgp_route_propagation_enabled
tags = module.labels.tags

dynamic "route" {
Expand Down
12 changes: 6 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ variable "subnet_names" {
description = "A list of public subnets inside the vNet."
}

variable "subnet_enforce_private_link_endpoint_network_policies" {
type = bool
default = false
description = "A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false."
variable "private_endpoint_network_policies" {
type = string
default = "Disabled"
description = "Possible values are Disabled, Enabled, NetworkSecurityGroupEnabled and RouteTableEnabled. Defaults to Disabled.."
}

variable "service_endpoints" {
Expand Down Expand Up @@ -156,9 +156,9 @@ variable "route_table_name" {
description = "The name of the route table."
}

variable "disable_bgp_route_propagation" {
variable "bgp_route_propagation_enabled" {
type = bool
default = false
default = true
description = "Boolean flag which controls propagation of routes learned by BGP on that route table."
}

Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"
required_version = ">= 1.7.8"
}

terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.85.0"
version = ">=3.112.0"
}
}
}

0 comments on commit edb92fd

Please sign in to comment.