Skip to content

Commit

Permalink
Update output.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kachawla authored Sep 13, 2023
1 parent f5fa5f9 commit 5c387f6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,18 @@ output "port" {
output "connectionString" {
value = format("rediss://%s:%d", aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].address, aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].port)
sensitive = true
}
}

output "result" {
value = {
resources = [aws_memorydb_cluster.memorydb_cluster.id]
values = {
host = aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].address
port = aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].port
}
secrets = {
connectionString = format("rediss://%s:%d", aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].address, aws_memorydb_cluster.memorydb_cluster.cluster_endpoint[0].port)
}
}
sensitive = true
}

0 comments on commit 5c387f6

Please sign in to comment.