You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Usage with the Application Security Group module
65
+
66
+
The following example demonstrate how to use the network-security-group module with a combination of predefined and custom rules with ASG source or destination.
We provide a Dockerfile to build a new image based `FROM` the `microsoft/terraform-test` Docker hub image which adds additional tools / packages specific for this module (see Custom Image section). Alternatively use only the `microsoft/terraform-test` Docker hub image [by using these instructions](https://github.com/Azure/terraform-test).
193
+
We provide a Dockerfile to build a new image based `FROM` the `mcr.microsoft.com/terraform-test` Docker hub image which adds additional tools / packages specific for this module (see Custom Image section). Alternatively use only the `mcr.microsoft.com/terraform-test` Docker hub image [by using these instructions](https://github.com/Azure/terraform-test).
Copy file name to clipboardExpand all lines: variables.tf
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ variable "location" {
24
24
25
25
# Predefined rules
26
26
variable"predefined_rules" {
27
-
type=list(any)
27
+
type=any
28
28
default=[]
29
29
}
30
30
@@ -33,7 +33,7 @@ variable "predefined_rules" {
33
33
# All the fields are required.
34
34
variable"custom_rules" {
35
35
description="Security rules for the network security group using this format name = [priority, direction, access, protocol, source_port_range, destination_port_range, source_address_prefix, destination_address_prefix, description]"
# Example ["10.0.3.0/32","10.0.3.128/32"] or ["VirtualNetwork"]
54
54
}
55
+
56
+
variable"source_application_security_group_ids" {
57
+
description="(Optional) A List of source Application Security Group IDs. Conflicted with `source_address_prefix`. Once assigned with `source_address_prefix`, it'll have a higher priority."
description="(Optional) A List of destination Application Security Group IDs. Conflicted with `destination_address_prefix`. Once assigned with `destination_address_prefix`, it'll have a higher priority."
0 commit comments