From a02a8a7fafa2393695a3247ef1eafecd2d352cdf Mon Sep 17 00:00:00 2001 From: Renato Date: Thu, 25 May 2023 08:00:00 +1000 Subject: [PATCH 1/2] Add db ARN output --- _output.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_output.tf b/_output.tf index 0a8e6a2..4d5c240 100644 --- a/_output.tf +++ b/_output.tf @@ -9,4 +9,8 @@ output "identifier" { output "rds_sg" { value = aws_security_group.rds_db.id +} + +output "db_arn" { + value = var.db_type == "rds" ? aws_db_instance.rds_db[0].arn : aws_rds_cluster.aurora_cluster[0].arn } \ No newline at end of file From 4e09f0c21fbdc12050c314e530937ed2498ed079 Mon Sep 17 00:00:00 2001 From: Renatovnctavares Date: Wed, 24 May 2023 22:02:02 +0000 Subject: [PATCH 2/2] terraform-docs: automated update action --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e253102..d47c411 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ | Name | Description | |------|-------------| +| db\_arn | n/a | | endpoint | n/a | | identifier | n/a | | rds\_sg | n/a |