Skip to content

Commit

Permalink
Added conditional to ensure additional SGs attached to appropriate RD…
Browse files Browse the repository at this point in the history
…S instances
  • Loading branch information
sienkin committed Jul 7, 2021
1 parent 417cbe8 commit d366a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion groups/heritage-shared-infrastructure/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module "rds" {
vpc_security_group_ids = flatten([
module.rds_security_group[each.key].this_security_group_id,
data.aws_security_group.rds_shared.id,
[for key, value in module.rds_app_security_group : value.this_security_group_id],
[for key, value in module.rds_app_security_group : value.this_security_group_id if key == each.key],
])


Expand Down

0 comments on commit d366a80

Please sign in to comment.