Skip to content

Commit

Permalink
Auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 8, 2023
1 parent 398a411 commit 56315f6
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 28 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

**Merged pull requests:**

- Add tracing tag toggle variables [\#108](https://github.com/Azure/terraform-azurerm-network/pull/108) ([lonegunmanb](https://github.com/lonegunmanb))
- Bump github.com/Azure/terraform-module-test-helper from 0.9.1 to 0.13.0 in /test [\#106](https://github.com/Azure/terraform-azurerm-network/pull/106) ([dependabot[bot]](https://github.com/apps/dependabot))

## [5.2.0](https://github.com/Azure/terraform-azurerm-network/tree/5.2.0) (2023-02-28)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ No modules.
| <a name="input_subnet_prefixes"></a> [subnet\_prefixes](#input\_subnet\_prefixes) | The address prefix to use for the subnet. | `list(string)` | <pre>[<br> "10.0.1.0/24"<br>]</pre> | no |
| <a name="input_subnet_service_endpoints"></a> [subnet\_service\_endpoints](#input\_subnet\_service\_endpoints) | A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []. | `map(list(string))` | `{}` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | The tags to associate with your network and subnets. | `map(string)` | <pre>{<br> "environment": "dev"<br>}</pre> | no |
| <a name="input_tracing_tags_enabled"></a> [tracing\_tags\_enabled](#input\_tracing\_tags\_enabled) | Whether enable tracing tags that generated by BridgeCrew Yor. | `bool` | `false` | no |
| <a name="input_tracing_tags_prefix"></a> [tracing\_tags\_prefix](#input\_tracing\_tags\_prefix) | Default prefix for generated tracing tags | `string` | `"avm_"` | no |
| <a name="input_use_for_each"></a> [use\_for\_each](#input\_use\_for\_each) | Use `for_each` instead of `count` to create multiple resource instances. | `bool` | n/a | yes |
| <a name="input_vnet_name"></a> [vnet\_name](#input\_vnet\_name) | Name of the vnet to create. | `string` | `"acctvnet"` | no |

Expand Down
17 changes: 17 additions & 0 deletions examples/startup/TestRecord.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 08 May 23 06:39 UTC

Success: true

### Versions

Terraform v1.4.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/azurerm v3.55.0
+ provider registry.terraform.io/hashicorp/random v3.5.1

### Error



---

## 07 May 23 00:18 UTC

Success: true
Expand Down
2 changes: 1 addition & 1 deletion examples/startup/outputs.tf
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
}
2 changes: 1 addition & 1 deletion examples/startup/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ variable "location" {
variable "use_for_each" {
type = bool
default = true
}
}
9 changes: 8 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ resource "azurerm_virtual_network" "vnet" {
name = var.vnet_name
resource_group_name = var.resource_group_name
dns_servers = var.dns_servers
tags = var.tags
tags = merge(var.tags, (/*<box>*/ (var.tracing_tags_enabled ? { for k, v in /*</box>*/ {
avm_git_commit = "c506f86f75a34ad34c2b4437e8076f1f06bf6a00"
avm_git_file = "main.tf"
avm_git_last_modified_at = "2022-11-23 09:20:55"
avm_git_org = "Azure"
avm_git_repo = "terraform-azurerm-network"
avm_yor_trace = "a94ff969-3b61-4138-8ca1-852c553ce148"
} /*<box>*/ : replace(k, "avm_", var.tracing_tags_prefix) => v } : {}) /*</box>*/))
}

moved {
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ output "vnet_name" {
output "vnet_subnets" {
description = "The ids of subnets created inside the newly created vNet"
value = local.azurerm_subnets[*].id
}
}
48 changes: 24 additions & 24 deletions variables.tf
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."
}

0 comments on commit 56315f6

Please sign in to comment.