Skip to content

Commit 7c8df92

Browse files
authored
fix: Fixed redshift_route_table_ids outputs (#739)
1 parent 6f89db5 commit 7c8df92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ output "database_route_table_ids" {
250250

251251
output "redshift_route_table_ids" {
252252
description = "List of IDs of redshift route tables"
253-
value = try(coalescelist(aws_route_table.redshift[*].id, aws_route_table.public[*].id, aws_route_table.private[*].id), [])
253+
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)
254254
}
255255

256256
output "elasticache_route_table_ids" {

0 commit comments

Comments
 (0)