Skip to content

Commit 9a526c9

Browse files
authored
feat(firewall_rules): add connections and output types in metadata.yaml (#671)
1 parent 7b710ed commit 9a526c9

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

modules/firewall-rules/metadata.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ spec:
104104
description: Name of the network this set of firewall rules applies to.
105105
varType: string
106106
required: true
107+
connections:
108+
- source:
109+
source: github.com/terraform-google-modules/terraform-google-network
110+
version: ">= 13.0.0"
111+
spec:
112+
outputExpr: network_name
107113
- name: rules
108114
description: This is DEPRECATED and available for backward compatibility. Use ingress_rules and egress_rules variables. List of custom rule definitions
109115
varType: |-
@@ -160,6 +166,37 @@ spec:
160166
}))
161167
}))
162168
defaultValue: []
169+
connections:
170+
- source:
171+
source: github.com/terraform-google-modules/terraform-google-service-accounts//modules/simple-sa
172+
version: ">= 4.4"
173+
spec:
174+
outputExpr: email
175+
inputPath: source_service_accounts
176+
- source:
177+
source: github.com/terraform-google-modules/terraform-google-service-accounts//modules/simple-sa
178+
version: ">= 4.4"
179+
spec:
180+
outputExpr: email
181+
inputPath: target_service_accounts
182+
- source:
183+
source: github.com/terraform-google-modules/terraform-google-address
184+
version: ">= 4.3"
185+
spec:
186+
outputExpr: addresses
187+
inputPath: source_ranges
188+
- source:
189+
source: github.com/terraform-google-modules/terraform-google-lb-http//modules/frontend
190+
version: ">= 14.0.0"
191+
spec:
192+
outputExpr: "[external_ip]"
193+
inputPath: source_ranges
194+
- source:
195+
source: github.com/GoogleCloudPlatform/terraform-google-regional-lb-http//modules/frontend
196+
version: ">= 0.7.0"
197+
spec:
198+
outputExpr: "[external_ip]"
199+
inputPath: source_ranges
163200
- name: egress_rules
164201
description: List of egress rules. This will be ignored if variable 'rules' is non-empty
165202
varType: |-
@@ -191,8 +228,22 @@ spec:
191228
outputs:
192229
- name: firewall_rules
193230
description: The created firewall rule resources
231+
type:
232+
- map
233+
- - object
234+
- id: string
235+
name: string
236+
self_link: string
237+
creation_timestamp: string
194238
- name: firewall_rules_ingress_egress
195239
description: The created firewall ingress/egress rule resources
240+
type:
241+
- map
242+
- - object
243+
- id: string
244+
name: string
245+
self_link: string
246+
creation_timestamp: string
196247
requirements:
197248
roles:
198249
- level: Project

0 commit comments

Comments
 (0)