-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
30 lines (25 loc) · 989 Bytes
/
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
# Export the project id so that it can be referenced outside of terraform
# E.g. $ terraform output project_id
output "project_id" {
value = "${google_project.project.project_id}"
}
# Export the project number so it can be used elsewhere
output "project_number" {
value = "${google_project.project.number}"
}
# Export the service accounts as a map of account id to fully-qualified email
output "service_accounts" {
value = "${zipmap(google_service_account.sa.*.account_id, google_service_account.sa.*.email)}"
}
# Export the usage bucket name
output "usage_export_bucket" {
value = "${local.usage_export_bucket_name}"
}
# Export the networks as a map of names to self_links
output "networks" {
value = "${zipmap(google_compute_network.net.*.name, google_compute_network.net.*.self_link)}"
}
# Export the subnets as a map of names to self_links
output "subnets" {
value = "${zipmap(google_compute_subnetwork.subnet.*.name, google_compute_subnetwork.subnet.*.self_link)}"
}