diff --git a/terraform/environments/cdpt-chaps/database.tf b/terraform/environments/cdpt-chaps/database.tf index 7938f5172c8..429721b90fb 100644 --- a/terraform/environments/cdpt-chaps/database.tf +++ b/terraform/environments/cdpt-chaps/database.tf @@ -62,7 +62,7 @@ resource "aws_iam_policy" "rds-s3_access_policy" { } resource "aws_iam_role_policy_attachment" "rds_s3_access_attach" { - role = aws_iam_role.rds_s3_access.name + role = aws_iam_role.rds_s3_access_policy.name policy_arn = aws_iam_policy.rds_s3_access_policy.arn }