Skip to content

Drop dead ENVIRON and DATABASE env vars from stage Terraform #748

Description

@Nickatak

Context

The dev-side sweep that landed in #747 dropped four dead env vars from dev/dev.env.example (MODE, DEVTOOL, ENVIRON, DATABASE). Two of those (ENVIRON, DATABASE) are also still injected into the deployed stage container by Terraform in the incubator repo. Removing them in CTJ has no effect on stage until they're also removed there.

Scope

In the incubator repo at terraform/projects/civic-tech-jobs/environment-stage.tf, inside the container_environment list of the civic_tech_jobs_fullstack_stage_service module call:

{ "name" : "ENVIRON",  "value" : "stage" },
{ "name" : "DATABASE", "value" : module.civic_tech_jobs_stage_database.database },

Drop both entries. No application-side change required - these values are unread in the codebase. Verified by repo grep on the CTJ side; same vars dropped from dev/dev.env.example in #747.

DATABASE duplicates SQL_DATABASE, which Django settings actually consumes.

References

Owner

TBD - pending DevOps CoP discussion.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
🆕 New Issue Approval

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions