-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
110 lines (88 loc) · 3.92 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# VPC Outputs
output "vpc_id" {
description = "an identifier for the VPC network with format projects/{{project}}/global/networks/{{name}}"
value = google_compute_network.vpc_network.id
}
output "vpc_self_link" {
description = "The URI of the created VPC."
value = google_compute_network.vpc_network.self_link
}
output "subnetwork_id" {
description = "an identifier for the VPC subnetwork with format projects/{{project}}/regions/{{region}}/subnetworks/{{name}}"
value = google_compute_subnetwork.vertex-subnetwork.id
}
output "subnetwork_self_link" {
description = "The URI of the created subnetwork."
value = google_compute_subnetwork.vertex-subnetwork.self_link
}
output "private_ip_alloc_id" {
description = "an identifier for the private ip allocation with format projects/{{project}}/global/addresses/{{name}}"
value = google_compute_global_address.private_ip_alloc.id
}
output "private_ip_self_link" {
description = "The URI of the created IP address."
value = google_compute_global_address.private_ip_alloc.self_link
}
# NAT Outputs
output "router_id" {
description = "an identifier for the router with format projects/{{project}}/regions/{{region}}/routers/{{name}}"
value = google_compute_router.router.id
}
output "router_self_link" {
description = "The URI of the created router."
value = google_compute_router.router.self_link
}
output "nat_id" {
description = "an identifier for the NAT with format {{project}}/{{region}}/{{router}}/{{name}}"
value = google_compute_router.router.id
}
# FW Rules Outputs
output "firewall_id" {
description = "an identifier for the fw rules with format projects/{{project}}/global/firewalls/{{name}}"
value = {
for k, rule in google_compute_firewall.fw_rules : k => rule.id
}
}
# DNS Outputs
output "dns_policy_id" {
description = "an identifier for the dns policy with format projects/{{project}}/policies/{{name}}"
value = google_dns_response_policy.pga-response-policy.id
}
output "googleapis-response-policy-rule_id" {
description = "an identifier for the googleapis dns policy rule with format projects/{{project}}/responsePolicies/{{response_policy}}/rules/{{rule_name}}"
value = google_dns_response_policy_rule.googleapis-response-policy-rule-cname.id
}
output "gcr-response-policy-rule_id" {
description = "an identifier for the gcr dns policy rule with format projects/{{project}}/responsePolicies/{{response_policy}}/rules/{{rule_name}}"
value = google_dns_response_policy_rule.gcr-response-policy-rule-cname.id
}
output "pkg-response-policy-rule_id" {
description = "an identifier for the pkg.dev dns policy rule with format projects/{{project}}/responsePolicies/{{response_policy}}/rules/{{rule_name}}"
value = google_dns_response_policy_rule.pkg-dev-response-policy-rule-cname.id
}
output "notebooks-response-policy-rule_id" {
description = "an identifier for the notebooks dns policy rule with format projects/{{project}}/responsePolicies/{{response_policy}}/rules/{{rule_name}}"
value = google_dns_response_policy_rule.notebooks-response-policy-rule-cname.id
}
# GCS Bucket Outputs
output "gcs_bucket_self_link" {
description = "The URI of the created bucket."
value = google_storage_bucket.bucket.self_link
}
output "gcs_bucket_url" {
description = "The base URL of the bucket, in the format gs://<bucket-name>"
value = google_storage_bucket.bucket.url
}
# Notebooks Outputs
output "user_managed_notebook_id" {
description = "an identifier for the notebooks with format projects/{{project}}/global/firewalls/{{name}}"
value = {
for k, nb in google_notebooks_instance.notebook_instance : k => nb.id
}
}
output "google_managed_notebook_id" {
description = "an identifier for the notebooks with format projects/{{project}}/global/firewalls/{{name}}"
value = {
for k, nb in google_notebooks_runtime.runtime_notebook_instance : k => nb.id
}
}