Environments
Who this is for
Section titled “Who this is for”DevOps, engineering, and QA.
When to use it
Section titled “When to use it”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.
What good looks like
Section titled “What good looks like”A ticket can say where it was tested and where it will ship, and nobody deploys to prod thinking it was staging.
What to do
Section titled “What to do”- Write environment names, URLs, and who deploys in the README or runbook.
- Deploy through CI/CD to the matching environment.
- Name the environment on the ticket when you test.
- If you need a new environment, treat it as a decision.