Auto update
This commit is contained in:
Родитель
1dc82691db
Коммит
8a3db1449b
|
@ -4,6 +4,7 @@
|
|||
|
||||
**Merged pull requests:**
|
||||
|
||||
- support space inside source\_port\_range [\#108](https://github.com/Azure/terraform-azurerm-network-security-group/pull/108) ([lonegunmanb](https://github.com/lonegunmanb))
|
||||
- Bump github.com/Azure/terraform-module-test-helper from 0.12.0 to 0.13.0 in /test [\#105](https://github.com/Azure/terraform-azurerm-network-security-group/pull/105) ([dependabot[bot]](https://github.com/apps/dependabot))
|
||||
- Bump github.com/Azure/terraform-module-test-helper from 0.10.0 to 0.12.0 in /test [\#103](https://github.com/Azure/terraform-azurerm-network-security-group/pull/103) ([dependabot[bot]](https://github.com/apps/dependabot))
|
||||
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:59 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:44 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:54 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:40 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:51 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:38 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:56 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:42 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:48 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:34 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:49 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:36 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:45 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:32 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:44 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:30 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:40 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:29 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,26 +1,12 @@
|
|||
variable "custom_rules" {
|
||||
description = "Custom set of security rules using this format"
|
||||
type = list(any)
|
||||
default = []
|
||||
|
||||
# Example:
|
||||
# custom_rules = [{
|
||||
# name = "myssh"
|
||||
# priority = "101"
|
||||
# direction = "Inbound"
|
||||
# access = "Allow"
|
||||
# protocol = "tcp"
|
||||
# source_port_range = "1234"
|
||||
# destination_port_range = "22"
|
||||
# description = "description-myssh"
|
||||
#}]
|
||||
description = "Custom set of security rules using this format"
|
||||
}
|
||||
|
||||
variable "destination_address_prefix" {
|
||||
type = list(any)
|
||||
default = ["*"]
|
||||
|
||||
# Example: ["10.0.3.0/32","10.0.3.128/32"]
|
||||
}
|
||||
|
||||
variable "location" {
|
||||
|
@ -34,26 +20,24 @@ variable "resource_group_name" {
|
|||
}
|
||||
|
||||
variable "security_group_name" {
|
||||
description = "Name of the network security group"
|
||||
default = "nsg"
|
||||
description = "Name of the network security group"
|
||||
}
|
||||
|
||||
variable "source_address_prefix" {
|
||||
type = list(any)
|
||||
default = ["*"]
|
||||
|
||||
# Example: ["10.0.3.0/24"]
|
||||
}
|
||||
|
||||
variable "tags" {
|
||||
description = "The tags to associate with your network security group."
|
||||
type = map(string)
|
||||
default = {}
|
||||
description = "The tags to associate with your network security group."
|
||||
}
|
||||
|
||||
variable "use_for_each" {
|
||||
description = "Choose wheter to use 'for_each' as iteration technic to generate the rules, defaults to false so we will use 'count' for compatibilty with previous module versions, but prefered method is 'for_each'"
|
||||
type = bool
|
||||
default = false
|
||||
description = "Choose wheter to use 'for_each' as iteration technic to generate the rules, defaults to false so we will use 'count' for compatibilty with previous module versions, but prefered method is 'for_each'"
|
||||
nullable = false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:35 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:26 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:41 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:26 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:30 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:23 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:28 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:21 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:26 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:19 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:25 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:17 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:23 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:15 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:21 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:12 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 07:21 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:11 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:32 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 01:17 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:31 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 01:15 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:29 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 01:13 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:28 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 01:13 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:25 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 01:10 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:24 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 01:08 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:22 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 01:05 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:20 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 01:03 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:18 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 01:01 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:15 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:59 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:14 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:58 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:09 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:53 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:11 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:55 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:07 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:52 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:05 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:49 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:04 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:48 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
## 06 May 23 08:01 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:45 UTC
|
||||
|
||||
Success: true
|
||||
|
|
|
@ -6,4 +6,4 @@ output "network_security_group_id" {
|
|||
output "network_security_group_name" {
|
||||
description = "The name of newly created network security group"
|
||||
value = azurerm_network_security_group.nsg.name
|
||||
}
|
||||
}
|
||||
|
|
33
variables.tf
33
variables.tf
|
@ -1,47 +1,45 @@
|
|||
# Network Security Group definition
|
||||
variable "resource_group_name" {
|
||||
description = "Name of the resource group"
|
||||
type = string
|
||||
description = "Name of the resource group"
|
||||
}
|
||||
|
||||
# Custom security rules
|
||||
# [name, priority, direction, access, protocol, source_port_range, destination_port_range, description]"
|
||||
# All the fields are required.
|
||||
variable "custom_rules" {
|
||||
description = "Security rules for the network security group using this format name = [name, priority, direction, access, protocol, source_port_range, destination_port_range, source_address_prefix, destination_address_prefix, description]"
|
||||
type = any
|
||||
default = []
|
||||
description = "Security rules for the network security group using this format name = [name, priority, direction, access, protocol, source_port_range, destination_port_range, source_address_prefix, destination_address_prefix, description]"
|
||||
}
|
||||
|
||||
variable "destination_address_prefix" {
|
||||
description = "Destination address prefix to be applied to all predefined rules. list(string) only allowed one element (CIDR, `*`, source IP range or Tags). Example [\"10.0.3.0/24\"] or [\"VirtualNetwork\"]"
|
||||
type = list(string)
|
||||
default = ["*"]
|
||||
description = "Destination address prefix to be applied to all predefined rules. list(string) only allowed one element (CIDR, `*`, source IP range or Tags). Example [\"10.0.3.0/24\"] or [\"VirtualNetwork\"]"
|
||||
}
|
||||
|
||||
variable "destination_address_prefixes" {
|
||||
description = "Destination address prefix to be applied to all predefined rules. Example [\"10.0.3.0/32\",\"10.0.3.128/32\"]"
|
||||
type = list(string)
|
||||
default = null
|
||||
description = "Destination address prefix to be applied to all predefined rules. Example [\"10.0.3.0/32\",\"10.0.3.128/32\"]"
|
||||
}
|
||||
|
||||
variable "location" {
|
||||
description = "Location (Azure Region) for the network security group."
|
||||
# No default - if it's not specified, use the resource group location (see main.tf)
|
||||
type = string
|
||||
default = ""
|
||||
type = string
|
||||
default = ""
|
||||
description = "Location (Azure Region) for the network security group."
|
||||
}
|
||||
|
||||
variable "predefined_rules" {
|
||||
description = "Predefined rules"
|
||||
type = any
|
||||
default = []
|
||||
description = "Predefined rules"
|
||||
}
|
||||
|
||||
variable "rules" {
|
||||
description = "Standard set of predefined rules"
|
||||
type = map(any)
|
||||
|
||||
type = map(any)
|
||||
# [direction, access, protocol, source_port_range, destination_port_range, description]"
|
||||
# The following info are in the submodules: source_address_prefix, destination_address_prefix
|
||||
default = {
|
||||
|
@ -162,35 +160,36 @@ variable "rules" {
|
|||
#WinRM
|
||||
WinRM = ["Inbound", "Allow", "Tcp", "*", "5986", "WinRM"]
|
||||
}
|
||||
description = "Standard set of predefined rules"
|
||||
}
|
||||
|
||||
variable "security_group_name" {
|
||||
description = "Network security group name"
|
||||
type = string
|
||||
default = "nsg"
|
||||
description = "Network security group name"
|
||||
}
|
||||
|
||||
variable "source_address_prefix" {
|
||||
description = "Source address prefix to be applied to all predefined rules. list(string) only allowed one element (CIDR, `*`, source IP range or Tags). Example [\"10.0.3.0/24\"] or [\"VirtualNetwork\"]"
|
||||
type = list(string)
|
||||
default = ["*"]
|
||||
description = "Source address prefix to be applied to all predefined rules. list(string) only allowed one element (CIDR, `*`, source IP range or Tags). Example [\"10.0.3.0/24\"] or [\"VirtualNetwork\"]"
|
||||
}
|
||||
|
||||
variable "source_address_prefixes" {
|
||||
description = "Destination address prefix to be applied to all predefined rules. Example [\"10.0.3.0/32\",\"10.0.3.128/32\"]"
|
||||
type = list(string)
|
||||
default = null
|
||||
description = "Destination address prefix to be applied to all predefined rules. Example [\"10.0.3.0/32\",\"10.0.3.128/32\"]"
|
||||
}
|
||||
|
||||
variable "tags" {
|
||||
description = "The tags to associate with your network security group."
|
||||
type = map(string)
|
||||
default = {}
|
||||
description = "The tags to associate with your network security group."
|
||||
}
|
||||
|
||||
variable "use_for_each" {
|
||||
description = "Choose wheter to use 'for_each' as iteration technic to generate the rules, defaults to false so we will use 'count' for compatibilty with previous module versions, but prefered method is 'for_each'"
|
||||
type = bool
|
||||
default = false
|
||||
description = "Choose wheter to use 'for_each' as iteration technic to generate the rules, defaults to false so we will use 'count' for compatibilty with previous module versions, but prefered method is 'for_each'"
|
||||
nullable = false
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче