Skip to content

Commit

Permalink
Merge pull request #1738 from ministryofjustice/bugfix/rds-instance
Browse files Browse the repository at this point in the history
Added required parameters to rds module
  • Loading branch information
crvgilbertson authored Mar 21, 2023
2 parents a2c92e1 + 226286f commit d794360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/modules/baseline/rds_instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module "db_instance" {
aws.core-vpc = aws.core-vpc
}

identifier = each.value.instance.identifier

instance = merge(each.value.instance, {
vpc_security_group_ids = [
for sg in each.value.instance.vpc_security_group_ids : lookup(aws_security_group.this, sg, null) != null ? aws_security_group.this[sg].id : sg
Expand Down

0 comments on commit d794360

Please sign in to comment.