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

Use parameter store instead of or in addition to credentials files #174

Open
tvogels01 opened this issue Apr 10, 2020 · 0 comments
Open

Comments

@tvogels01
Copy link
Contributor

tvogels01 commented Apr 10, 2020

Summary

Instead of copying credentials files around and updating for everybody when passwords change, create passwords (to access upstream databases or Redshift clusters) in the AWS Systems Manager Parameter Store.

Details

Initial steps

An initial implementation could just allow a special syntax in the DSN to trigger a lookup in the parameter store.

Example:

WEBAPP_DSN="ssm://etl/dsn/webapp_dsn"

Lookup with overrides

Suggested parameter organization:

prefix: DW-ETL/
hierarchical search:
general: <dw prefix>/<env_type>/<user prefix>/<name>

e.g. looking for connection to "WEBSERVER_REPLICA" in environment development when running validation:
    look for DW-ETL/dev/development/validation/WEBSERVER_REPLICA
             DW-ETL/dev/development/WEBSERVER_REPLICA
             DW-ETL/dev/WEBSERVER_REPLICA

When do overrides occur?

  • pick different base stack
  • pick different environment (development vs. tom vs. tom/validation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant