diff --git a/terraform/environments/cdpt-chaps/database.tf b/terraform/environments/cdpt-chaps/database.tf index 2c579597385..7d89f7217e6 100644 --- a/terraform/environments/cdpt-chaps/database.tf +++ b/terraform/environments/cdpt-chaps/database.tf @@ -45,8 +45,8 @@ resource "aws_security_group_rule" "ecs_to_rds" { from_port = 1433 to_port = 1433 protocol = "tcp" - security_group_id = db.id - source_security_group_id = cluster_ec2.id + security_group_ids = [aws_security_group.db.id] + source_security_group_id = aws_security_group.cluster_ec2.id } resource "aws_security_group" "db" {