From 5c387f609376f48e0aa71762fcf157bf32eb9d76 Mon Sep 17 00:00:00 2001 From: Karishma Chawla Date: Wed, 13 Sep 2023 08:54:20 -0700 Subject: [PATCH] Update output.tf --- output.tf | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/output.tf b/output.tf index 8a9d82f..5a0cc10 100644 --- a/output.tf +++ b/output.tf @@ -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 -} \ No newline at end of file +} + +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 +}