Refacto and add modules
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
output "host" {
|
||||
value = "${var.app_slug}-redis.${var.namespace}.svc"
|
||||
output "conn_string" {
|
||||
value = "postgres://${urlencode(data.kubernetes_secret_v1.credentials.data["username"])}:${urlencode(data.kubernetes_secret_v1.credentials.data["password"])}@${local.app_slug}-pg-rw.${var.namespace}.svc:5432/${var.component}"
|
||||
}
|
||||
|
||||
output "service" {
|
||||
value = "${local.app_slug}-pg-rw.${var.namespace}.svc"
|
||||
}
|
||||
|
||||
output "db_host" {
|
||||
value = "${local.app_slug}-pg-rw"
|
||||
}
|
||||
|
||||
output "db_name" {
|
||||
value = var.component
|
||||
}
|
||||
|
||||
output "db_port" {
|
||||
value = "5432"
|
||||
}
|
||||
|
||||
output "secret_name" {
|
||||
value = "${local.app_slug}-pg-app"
|
||||
}
|
||||
Reference in New Issue
Block a user