Skip to content

Commit

Permalink
associate rds role
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Dec 13, 2023
1 parent 9e9695b commit 6555937
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terraform/environments/cdpt-chaps/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ resource "aws_db_instance" "database" {
identifier = local.application_data.accounts[local.environment].db_instance_identifier
username = local.application_data.accounts[local.environment].db_user
password = data.aws_secretsmanager_secret_version.db_password.secret_string
iam_role_arn = aws_iam_role.S3_db_backup_restore_access.arn
}

resource "aws_db_instance_role_association" "database" {
db_instance_identifier = aws_db_instance.database.identifier
feature_name = "S3_INTEGRATION"
role_arn = aws_iam_role.S3_db_backup_restore_access.arn
}

output "s3_db_backup_restore_access_role_arn" {
Expand Down

0 comments on commit 6555937

Please sign in to comment.