This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
/
outputs.tf
45 lines (39 loc) · 1.58 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
output depends_id {
description = "Value that can be used for intra-module dependency creation."
value = "${module.nat-gateway.depends_id}"
}
output gateway_ip {
description = "The internal IP address of the NAT gateway instance."
value = "${module.nat-gateway.network_ip}"
}
output instance {
description = "The self link to the NAT gateway instance."
value = "${flatten(module.nat-gateway.instances)}"
}
output external_ip {
description = "The external IP address of the NAT gateway instance."
value = "${element(concat(google_compute_address.default.*.address, data.google_compute_address.default.*.address, list("")), 0)}"
}
output routing_tag_regional {
description = "The tag that any other instance will need to have in order to get the regional routing rule"
value = "${local.regional_tag}"
}
output routing_tag_zonal {
description = "The tag that any other instance will need to have in order to get the zonal routing rule"
value = "${local.zonal_tag}"
}