Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
fix error when no db subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishmohite committed May 7, 2020
1 parent 0877c18 commit 257a522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion out.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ output "database_subnets_ids" {
}

output "aws_db_subnet_group_name" {
value = aws_db_subnet_group.db_subnet_group[0].name
value = length(var.database_subnets) > 0 ? aws_db_subnet_group.db_subnet_group[0].name : null
description = "VPC database subnet group name"
}

0 comments on commit 257a522

Please # to comment.