Terraform NAME Module ======================== ## Overview Description of what the module does ## Requirements | Name | Version | |------|---------| | [terraform](#requirement_terraform) | >= 1.0 | | [azurerm](#requirement_azurerm) | =3.0.0 | ## Providers | Name | Version | |------|---------| | [azurerm](#provider_azurerm) | 3.0.0 | ## Modules | Name | Source | Version | |------|--------|---------| | [default_label](#module_default_label) | git::https://gitlab.com/zulunity/terraform/modules/general/label.git | 0.0.0 | | [secrets_label](#module_secrets_label) | git::https://gitlab.com/zulunity/terraform/modules/general/label.git | n/a | ## Usage Basic usage of this module is as follows: ```hcl module "example" { source = "" # Required variables bgp_community = ddos_protection_plan = edge_zone = flow_timeout_in_minutes = subnets = # Optional variables account = null address_space = [ "10.0.0.0/16" ] attributes = [] cloud_provider = null context = { "account": null, "additional_tag_map": {}, "attributes": [], "cloud_provider": null, "delimiter": null, "enabled": true, "environment": null, "id_length_limit": null, "label_order": [], "name": null, "namespace": null, "regex_replace_chars": null, "region": null, "stage": null, "tags": {} } dns_servers = [ "10.0.0.4", "10.0.0.5" ] domain = null enabled = true environment = null name = "hi" namespace = null region = null stage = null tags = {} virtual_network = "network" } ``` ## Resources | Name | Type | |------|------| | [azurerm_network_security_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/3.0.0/docs/resources/network_security_group) | resource | | [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/3.0.0/docs/resources/resource_group) | resource | | [azurerm_subnet.example](https://registry.terraform.io/providers/hashicorp/azurerm/3.0.0/docs/resources/subnet) | resource | | [azurerm_virtual_network.example](https://registry.terraform.io/providers/hashicorp/azurerm/3.0.0/docs/resources/virtual_network) | resource | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [account](#input_account) | Name of the account being used (master, nonprod, prod, etc) | `string` | `null` | no | | [address_space](#input_address_space) | El espacio de direcciones que se usa en la red virtual. Puede proporcionar más de un espacio de direcciones. | `list(string)` |
[
"10.0.0.0/16"
]
| no | | [attributes](#input_attributes) | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no | | [bgp_community](#input_bgp_community) | El atributo de comunidad BGP en formato :. | `number` | n/a | yes | | [cloud_provider](#input_cloud_provider) | Cloud provider name if any | `string` | `null` | no | | [context](#input_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged. |
object({
enabled = bool
namespace = string
cloud_provider = string
account = string
region = string
environment = string
stage = string
name = string
delimiter = string
attributes = list(string)
tags = map(string)
additional_tag_map = map(string)
regex_replace_chars = string
label_order = list(string)
id_length_limit = number
})
|
{
"account": null,
"additional_tag_map": {},
"attributes": [],
"cloud_provider": null,
"delimiter": null,
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_order": [],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"region": null,
"stage": null,
"tags": {}
}
| no | | [ddos_protection_plan](#input_ddos_protection_plan) | configuración de un plan de protección contra ataques de denegación de servicio distribuido |
map(object({
id = string #id de la configuración de un plan de protección contra ataques de denegación de servicio distribuido
enable = bool #se define si esta activado o no
}))
| n/a | yes | | [dns_servers](#input_dns_servers) | Lista de direcciones IP de servidores DNS | `list(string)` |
[
"10.0.0.4",
"10.0.0.5"
]
| no | | [domain](#input_domain) | TLD to use when deploying assets | `string` | `null` | no | | [edge_zone](#input_edge_zone) | Especifica la zona perimetral dentro de la región de Azure en la que debe existir esta red virtual. Cambiar esto obliga a crear una nueva red virtual. | `string` | n/a | yes | | [enabled](#input_enabled) | Set to false to prevent the module from creating any resources | `bool` | `true` | no | | [environment](#input_environment) | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | `string` | `null` | no | | [flow_timeout_in_minutes](#input_flow_timeout_in_minutes) | El tiempo de espera del flujo en minutos para la red virtual, que se usa para habilitar el seguimiento de conexiones para los flujos dentro de la máquina virtual. Los valores posibles están entre 4 y 30 minutos | `number` | n/a | yes | | [name](#input_name) | Module name, e.g. 'app' or 'jenkins' | `string` | `"hi"` | no | | [namespace](#input_namespace) | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no | | [region](#input_region) | AWS region to deploy asset into | `string` | `null` | no | | [stage](#input_stage) | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no | | [subnets](#input_subnets) | n/a |
map(object({
name = string
address_space = string
resource_group_name = string
security_group = string
}))
| n/a | yes | | [tags](#input_tags) | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no | | [virtual_network](#input_virtual_network) | n/a | `string` | `"network"` | no | ## Outputs | Name | Description | |------|-------------| | [context](#output_context) | Default label context | | [enabled](#output_enabled) | Whether or not the module is enabled | | [name](#output_name) | Name of the asset |