-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
398a411
commit 56315f6
Showing
8 changed files
with
55 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "test_vnet_id" { | ||
output "test_vnet_id" { | ||
value = module.network.vnet_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ variable "location" { | |
variable "use_for_each" { | ||
type = bool | ||
default = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,102 @@ | ||
variable "resource_group_name" { | ||
description = "The name of an existing resource group to be imported." | ||
type = string | ||
description = "The name of an existing resource group to be imported." | ||
} | ||
|
||
variable "use_for_each" { | ||
description = "Use `for_each` instead of `count` to create multiple resource instances." | ||
type = bool | ||
description = "Use `for_each` instead of `count` to create multiple resource instances." | ||
nullable = false | ||
} | ||
|
||
variable "address_space" { | ||
description = "The address space that is used by the virtual network." | ||
type = string | ||
default = "10.0.0.0/16" | ||
description = "The address space that is used by the virtual network." | ||
} | ||
|
||
variable "address_spaces" { | ||
description = "The list of the address spaces that is used by the virtual network." | ||
type = list(string) | ||
default = [] | ||
description = "The list of the address spaces that is used by the virtual network." | ||
} | ||
|
||
# If no values specified, this defaults to Azure DNS | ||
variable "dns_servers" { | ||
description = "The DNS servers to be used with vNet." | ||
type = list(string) | ||
default = [] | ||
description = "The DNS servers to be used with vNet." | ||
} | ||
|
||
variable "resource_group_location" { | ||
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created." | ||
type = string | ||
default = null | ||
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created." | ||
} | ||
|
||
variable "subnet_delegation" { | ||
description = "`service_delegation` blocks for `azurerm_subnet` resource, subnet names as keys, list of delegation blocks as value, more details about delegation block could be found at the [document](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#delegation)." | ||
type = map(list(object({ | ||
name = string | ||
service_delegation = object({ | ||
name = string | ||
actions = optional(list(string)) | ||
}) | ||
}))) | ||
default = {} | ||
nullable = false | ||
default = {} | ||
description = "`service_delegation` blocks for `azurerm_subnet` resource, subnet names as keys, list of delegation blocks as value, more details about delegation block could be found at the [document](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#delegation)." | ||
nullable = false | ||
} | ||
|
||
variable "subnet_enforce_private_link_endpoint_network_policies" { | ||
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." | ||
type = map(bool) | ||
default = {} | ||
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 "subnet_names" { | ||
description = "A list of public subnets inside the vNet." | ||
type = list(string) | ||
default = ["subnet1"] | ||
description = "A list of public subnets inside the vNet." | ||
} | ||
|
||
variable "subnet_prefixes" { | ||
description = "The address prefix to use for the subnet." | ||
type = list(string) | ||
default = ["10.0.1.0/24"] | ||
description = "The address prefix to use for the subnet." | ||
} | ||
|
||
variable "subnet_service_endpoints" { | ||
description = "A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []." | ||
type = map(list(string)) | ||
default = {} | ||
description = "A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []." | ||
} | ||
|
||
variable "tags" { | ||
description = "The tags to associate with your network and subnets." | ||
type = map(string) | ||
type = map(string) | ||
default = { | ||
environment = "dev" | ||
} | ||
} | ||
|
||
variable "vnet_name" { | ||
description = "Name of the vnet to create." | ||
type = string | ||
default = "acctvnet" | ||
description = "The tags to associate with your network and subnets." | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tracing_tags_enabled" { | ||
type = bool | ||
description = "Whether enable tracing tags that generated by BridgeCrew Yor." | ||
default = false | ||
description = "Whether enable tracing tags that generated by BridgeCrew Yor." | ||
nullable = false | ||
} | ||
|
||
# tflint-ignore: terraform_unused_declarations | ||
variable "tracing_tags_prefix" { | ||
type = string | ||
description = "Default prefix for generated tracing tags" | ||
default = "avm_" | ||
description = "Default prefix for generated tracing tags" | ||
nullable = false | ||
} | ||
} | ||
|
||
variable "vnet_name" { | ||
type = string | ||
default = "acctvnet" | ||
description = "Name of the vnet to create." | ||
} |