Skip to content

Commit

Permalink
fix: Return correct route table when enable_public_redshift is set (#337
Browse files Browse the repository at this point in the history
)
  • Loading branch information
skorfmann authored Aug 15, 2021
1 parent f953fbc commit fdc476d
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 = length(aws_route_table.redshift.*.id) > 0 ? aws_route_table.redshift.*.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 fdc476d

Please sign in to comment.