forked from jenkins-x/terraform-google-jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
49 lines (40 loc) · 1.45 KB
/
output.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
output "gcp_project" {
description = "The GCP project in which the resources got created"
value = var.gcp_project
}
output "cluster_location" {
description = "The location of the created Kubernetes cluster"
value = var.cluster_location
}
output "cluster_name" {
description = "The name of the created Kubernetes cluster"
value = local.cluster_name
}
output "log_storage_url" {
description = "The URL to the bucket for log storage"
value = module.cluster.log_storage_url
}
output "report_storage_url" {
description = "The URL to the bucket for report storage"
value = module.cluster.report_storage_url
}
output "repository_storage_url" {
description = "The URL to the bucket for artifact storage"
value = module.cluster.repository_storage_url
}
output "vault_bucket_url" {
description = "The URL to the bucket for secret storage"
value = length(module.vault) > 0 ? module.vault[0].vault_bucket_url : ""
}
output "backup_bucket_url" {
description = "The URL to the bucket for backup storage"
value = module.backup.backup_bucket_url
}
output "jx_requirements" {
description = "The jx-requirements rendered output"
value = local.content
}
output "connect" {
description = "The cluster connection string to use once Terraform apply finishes"
value = "gcloud container clusters get-credentials ${local.cluster_name} --zone ${var.cluster_location} --project ${var.gcp_project}"
}