Skip to content

Environments

Editor
Engineering leadership

DevOps, engineering, and QA.

When you create, name, or deploy to an environment.

  • Must: Every project names its environments and what each is for (local, shared non-prod, prod). “Staging” that is actually prod is not allowed.
  • Must: Non-prod and prod are separate. Do not point a non-prod app at prod data stores without a written exception.
  • Must: Client and customer data in non-prod follows Client and customer data. Do not copy prod dumps onto laptops by default.
  • Should: Shared non-prod matches prod closely enough to catch config mistakes. See Environments used for testing.
  • Should: Who can deploy to each environment is written. Prod is fewer people than non-prod.
  • Team decides: The names and how many non-prod environments this project needs. AWS account split is on AWS.

A ticket can say where it was tested and where it will ship, and nobody deploys to prod thinking it was staging.

  1. Write environment names, URLs, and who deploys in the README or runbook.
  2. Deploy through CI/CD to the matching environment.
  3. Name the environment on the ticket when you test.
  4. If you need a new environment, treat it as a decision.