Skip to content

Commit fdc476d

Browse files
authored
fix: Return correct route table when enable_public_redshift is set (#337)
1 parent f953fbc commit fdc476d

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 = length(aws_route_table.redshift.*.id) > 0 ? aws_route_table.redshift.*.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)