cloudposse / terraform-aws-rds

Terraform module to provision AWS RDS instances
https://cloudposse.com/accelerate
Apache License 2.0
157 stars 181 forks source link

Generate database password #118

Open rverma-dev opened 3 years ago

rverma-dev commented 3 years ago

Generate a database password if input is missing.

nitrocode commented 3 years ago

@rverma-nsl if this option was added using a random_string resource, the password would be stored in the remote state.

Wouldn't it be better if the password was created outside of the module, saved in SSM, retrieved from SSM using a data source, and fed into this module using the database_password var? That way the password would not be saved in the tfstate.

nitrocode commented 3 years ago

Actually, we have some art for this. We should use random_pet for the username and random_string for the password.

acorncom commented 1 year ago

Rather than handling this at the module level, seems like something a consumer can setup as desired, no?