Closed Bug 1835888 Opened 2 years ago Closed 2 years ago

implement cloud environment variable

Categories

(Tecken :: General, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: bdanforth)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The migration plan for Tecken requires us to have a single codebase that's being run in two different cloud environments: AWS and GCP. There's a lot of complexity in the requirements such that we need to be able to conditionally enable/disable code depending on which cloud environment it's running in.

For this, we'll need a configuration parameter that's set via an environment variable.

Maybe CLOUD is good? Maybe something different?

Work required here:

  1. determine configuration setting name and environment variable name
  2. add variable to tecken/settings.py with allowed values AWS and GCP and documentation
  3. add variable to settings page in admin so we can see how it's set
  4. add variable=GCP to migration guide so we know to set it when setting up GCP infrastructure
  5. add variable=AWS to aws infrastructure

We need this before we change how HOSTNAME and metrics work because we need to switch the functionality depending on which environment we're in.

Blocks: 1864651
Assignee: nobody → bdanforth
Status: NEW → ASSIGNED

This was pushed to production just now in bug #1869351. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: