diff --git a/README.md b/README.md index 73a7f34..87f6914 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ No modules. | Name | Description | Type | Default | Required | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------------------|:--------:| | [address\_space](#input\_address\_space) | The address space that is used by the virtual network. | `list(string)` |
[
"10.0.0.0/16"
]
| no | +| [bgp\_community](#input\_bgp\_community) | (Optional) The BGP community attribute in format `:`. | `string` | `null` | no | | [ddos\_protection\_plan](#input\_ddos\_protection\_plan) | The set of DDoS protection plan configuration |
object({
enable = bool
id = string
})
| `null` | no | | [dns\_servers](#input\_dns\_servers) | The DNS servers to be used with vNet. | `list(string)` | `[]` | no | | [nsg\_ids](#input\_nsg\_ids) | A map of subnet name to Network Security Group IDs | `map(string)` | `{}` | no | diff --git a/main.tf b/main.tf index 424df8c..ace182b 100644 --- a/main.tf +++ b/main.tf @@ -3,6 +3,7 @@ resource "azurerm_virtual_network" "vnet" { location = var.vnet_location name = var.vnet_name resource_group_name = var.resource_group_name + bgp_community = var.bgp_community dns_servers = var.dns_servers tags = var.tags diff --git a/variables.tf b/variables.tf index a2c25e6..ad86ba8 100644 --- a/variables.tf +++ b/variables.tf @@ -16,6 +16,12 @@ variable "address_space" { default = ["10.0.0.0/16"] } +variable "bgp_community" { + type = string + description = "(Optional) The BGP community attribute in format `:`." + default = null +} + variable "ddos_protection_plan" { description = "The set of DDoS protection plan configuration" type = object({