CivicTechJobs icon indicating copy to clipboard operation
CivicTechJobs copied to clipboard

Create Stage environment Django admin credentials

Open LoTerence opened this issue 8 months ago • 0 comments

Story

As developers, we should be able to modify the db data in the stage environment on AWS, so that we can better test our changes before deploying to production.

Overview

We should have django admin credentials for the stage environment that allow us to modify data in the CTJ stage RDS database.

Action Items

Requirements:

  • [ ] Create stage environment django admin credentials
  • [ ] These credentials should be saved in the CTJ 1password vault so dev team members can access them
  • [ ] There should be at least 3 username + password pairs of admin credentials that any dev can use

Later:

  • [ ] The RDS db instance + data should be accessible through a dev's local machine via environment variables.

Example:

RDS_DB_HOST=hfla-civictechjobs.cb6g0o2e8xjy.us-west-1.rds.amazonaws.com
RDS_CONNECTION_STR=postgres://postgres:abcd1234zyx098765@hfla-civictechjobs.asdfasdf.us-west-1.rds.amazonaws.com/civictechjobs_stage

The HFLA TDM-calculator project allows devs to use admin credentials on their local machine to access and modify test data on a shared staging DB similar to this. These credentials are also stored on their 1password vault, and the db is accessible through variables stored in their .env.

Resources/Instructions

  • CTJ AWS stage environment: https://civictechjobs-stage.vrms.io/
  • HFLA incubator: https://github.com/hackforla/incubator
  • TDM-calculator: https://github.com/hackforla/tdm-calculator
  • CTJ Resources

LoTerence avatar Apr 13 '25 03:04 LoTerence