-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoutputs.tf
72 lines (62 loc) · 2.69 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
output "bucket_name" {
value = google_storage_bucket.bucket.name
description = "Name of the cloud storage bucket"
}
output "cluster" {
value = {
"client_certificate" = google_container_cluster.domino_cluster.master_auth[0].client_certificate,
"client_key" = google_container_cluster.domino_cluster.master_auth[0].client_key,
"cluster_ca_certificate" = google_container_cluster.domino_cluster.master_auth[0].cluster_ca_certificate,
"cluster_ipv4_cidr" = google_container_cluster.domino_cluster.cluster_ipv4_cidr,
"name" = google_container_cluster.domino_cluster.name,
"public_endpoint" = google_container_cluster.domino_cluster.private_cluster_config[0].public_endpoint,
"pod_cidr" = google_compute_subnetwork.default.ip_cidr_range
}
description = "GKE cluster information"
}
output "dns" {
value = var.managed_dns.enabled ? google_dns_record_set.a[0].name : ""
description = "The external (public) DNS name for the Domino UI"
}
output "google_filestore_instance" {
value = {
file_share = var.storage.filestore.enabled ? google_filestore_instance.nfs[0].file_shares[0].name : "",
ip_address = var.storage.filestore.enabled ? google_filestore_instance.nfs[0].networks[0].ip_addresses[0] : "",
}
description = "Domino Google Cloud Filestore instance, name and ip_address"
}
output "project" {
value = var.project
description = "GCP project ID"
}
output "region" {
value = local.region
description = "Region where the cluster is deployed derived from 'location' input variable"
}
output "static_ip" {
value = var.managed_dns.enabled ? google_compute_global_address.static_ip[0].address : ""
description = "The external (public) static IPv4 for the Domino UI"
}
output "uuid" {
value = var.deploy_id
description = "Cluster UUID"
}
output "service_accounts" {
value = { for sa in local.service_accounts : sa => google_service_account.accounts[sa] }
description = "GKE cluster Workload Identity namespace IAM service accounts"
}
output "domino_artifact_repository" {
value = google_artifact_registry_repository.domino
description = "Domino Google artifact repository"
}
output "nfs_instance_ip" {
value = var.storage.nfs_instance.enabled ? google_compute_instance.nfs[0].network_interface[0].network_ip : ""
description = "NFS instance IP"
}
output "nfs_instance" {
value = {
nfs_path = var.storage.nfs_instance.enabled ? local.nfs_path : "",
ip_address = var.storage.nfs_instance.enabled ? google_compute_instance.nfs[0].network_interface[0].network_ip : "",
}
description = "Domino Google Cloud Filestore instance, name and ip_address"
}