-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
100 lines (78 loc) · 2.6 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
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
# We output the following variables from the Terraform state
# as the project progresses we might not need to see these
# and automate provisioning as far as possible
output "k8s_kubeconfig" {
value = base64decode(linode_lke_cluster.primary.kubeconfig)
sensitive = true
}
output "k8s_api_endpoints" {
value = linode_lke_cluster.primary.api_endpoints
}
output "k8s_status" {
value = linode_lke_cluster.primary.status
}
output "k8s_id" {
value = linode_lke_cluster.primary.id
}
output "k8s_pool" {
value = linode_lke_cluster.primary.pool
}
# Bucket name, hostname and region for access
# The web client secrets will be used to copy files into the
# bucket when we release a new version of the application
output "key_access_bucket_web_client" {
value = linode_object_storage_key.web_client.access_key
sensitive = true
}
output "key_secret_bucket_web_client" {
value = linode_object_storage_key.web_client.secret_key
sensitive = true
}
output "label_bucket_web_client" {
value = linode_object_storage_bucket.web_client.label
}
output "cluster_bucket_web_client" {
value = linode_object_storage_bucket.web_client.cluster
}
output "dns_bucket_web_client" {
value = "${linode_object_storage_bucket.web_client.label}.${linode_object_storage_bucket.web_client.cluster}.linodeobjects.com"
}
# Outputs the access and secret key for both buckets
# these are required by the application to store and retrieve files
output "key_access_bucket_file_store" {
value = linode_object_storage_key.file_store.access_key
sensitive = true
}
output "key_secret_bucket_file_store" {
value = linode_object_storage_key.file_store.secret_key
sensitive = true
}
output "label_bucket_file_store" {
value = linode_object_storage_bucket.file_store.label
}
output "cluster_bucket_file_store" {
value = linode_object_storage_bucket.file_store.cluster
}
output "dns_bucket_file_store" {
value = "${linode_object_storage_bucket.file_store.label}.${linode_object_storage_bucket.file_store.cluster}.linodeobjects.com"
}
# JWT secret for the application
output "jwt_secret" {
value = base64encode(random_string.jwt_secret.result)
sensitive = true
}
# Postgres managed database
# output "db_host_primary" {
# value = linode_database_postgresql.primary.host_primary
# }
# output "db_host_secondary" {
# value = linode_database_postgresql.primary.host_secondary
# }
# output "db_username" {
# value = linode_database_postgresql.primary.root_username
# sensitive = true
# }
# output "db_password" {
# value = linode_database_postgresql.primary.root_password
# sensitive = true
# }