Skip to content

Commit

Permalink
Merge pull request #6 from DNXLabs/fix/output
Browse files Browse the repository at this point in the history
Fixed issue with aurora output
  • Loading branch information
Renatovnctavares authored Oct 5, 2021
2 parents 2e381a5 + dfe1a70 commit bd457a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _output.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
output "endpoint" {
value = try(aws_db_instance.rds_db[0].endpoint, "")
value = var.db_type == "rds" ? aws_db_instance.rds_db[0].endpoint : aws_rds_cluster.aurora_cluster[0].endpoint

}

output "identifier" {
value = try(aws_db_instance.rds_db[0].identifier, "")
value = var.db_type == "rds" ? aws_db_instance.rds_db[0].identifier : aws_rds_cluster.aurora_cluster[0].cluster_identifier
}

output "rds_sg" {
Expand Down

0 comments on commit bd457a5

Please sign in to comment.