Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate database password #118

Open
rverma-dev opened this issue Jun 3, 2021 · 3 comments
Open

Generate database password #118

rverma-dev opened this issue Jun 3, 2021 · 3 comments

Comments

@rverma-dev
Copy link

Generate a database password if input is missing.

@nitrocode
Copy link
Member

@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
Copy link
Member

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

@acorncom
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants