Skip to content

Commit

Permalink
fix: Added 'default_outbound_access_enabled' argument in subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ravimalvia10 committed Nov 25, 2024
1 parent 1713958 commit d8dce09
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/basic/example.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
provider "azurerm" {
features {}
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

locals {
Expand Down
1 change: 1 addition & 0 deletions examples/complete/example.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
provider "azurerm" {
features {}
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

locals {
Expand Down
1 change: 1 addition & 0 deletions examples/name-specific_subnet/example.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
provider "azurerm" {
features {}
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

locals {
Expand Down
1 change: 1 addition & 0 deletions examples/nat-gateway_subnet/example.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
provider "azurerm" {
features {}
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "azurerm_subnet" "subnet" {
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 = var.private_endpoint_network_policies

default_outbound_access_enabled = var.default_outbound_access_enabled
dynamic "delegation" {
for_each = var.delegation
content {
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,8 @@ variable "sku_name" {
}


variable "default_outbound_access_enabled " {

Check warning on line 190 in variables.tf

View workflow job for this annotation

GitHub Actions / tf-lint / tflint

variable "default_outbound_access_enabled " is declared but not used
type = bool
default = true
description = "Enable default outbound access to the internet for the subnet. Defaults to true."
}

0 comments on commit d8dce09

Please sign in to comment.