millipz / nc-de-deliverance-project

Project Repo for Deliverance Team 2024
3 stars 2 forks source link

Store Database Credentials in AWS secretsmanager. #16

Closed oliverboyd closed 6 months ago

oliverboyd commented 6 months ago

1) Create a secret to store DB credentials. Define keys:

2) Update Terraform configuration to reference the secret user=${data.aws_secretsmanager_secret_version.db_credentials.db_username} password=${data.aws_secretsmanager_secret_version.db_credentials.db_password}

3) Include IAM permissions in Terraform module to allow read access