Skip to content

Commit

Permalink
fix: Fixed redshift_route_table_ids outputs (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Jan 26, 2022
1 parent 6f89db5 commit 7c8df92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ output "database_route_table_ids" {

output "redshift_route_table_ids" {
description = "List of IDs of redshift route tables"
value = try(coalescelist(aws_route_table.redshift[*].id, aws_route_table.public[*].id, aws_route_table.private[*].id), [])
value = length(aws_route_table.redshift[*].id) > 0 ? aws_route_table.redshift[*].id : (var.enable_public_redshift ? aws_route_table.public[*].id : aws_route_table.private[*].id)
}

output "elasticache_route_table_ids" {
Expand Down

0 comments on commit 7c8df92

Please sign in to comment.