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 +}