Skip to content

Commit

Permalink
Add outputs map
Browse files Browse the repository at this point in the history
  • Loading branch information
kachawla authored Jul 26, 2023
1 parent 13315d7 commit 8aa5d5a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,21 @@ output "port" {

output "connectionString" {
value = "redis://${kubernetes_service.redis.metadata[0].name}.${kubernetes_service.redis.metadata[0].namespace}.svc.cluster.local:6379"
}
sensitive = true
}

output "values" {
value = {
host = "${kubernetes_service.redis.metadata[0].name}.${kubernetes_service.redis.metadata[0].namespace}.svc.cluster.local",
port = 6379,
}
}

output "secrets" {
value = {
connectionString = "redis://${kubernetes_service.redis.metadata[0].name}.${kubernetes_service.redis.metadata[0].namespace}.svc.cluster.local:6379"
}
sensitive = true
}


0 comments on commit 8aa5d5a

Please sign in to comment.