Companies often think of cloud environments as assets they've built, but in reality, they should be commodities: something that can be created, updated, or deleted at any time.
What do I mean by that?
When environments are treated as fixed investments, teams hesitate to spin up new ones, seeing them as too much effort for little utility. But when environments are easy to create and manage, they speed teams up.
The pressure on environments is also rising. AI made code fast, so every engineer and every coding agent now sends more changes. Each of those changes wants a place to run before it reaches production.
A system that makes the cloud environment lifecycle easy gives you:
- Scaling to new regions: launch a full environment when you expand to a new region or cloud, with no extra system to maintain.
- Performance testing on demand: no waiting, just spin up, test, and tear down.
- Feature validation without constraints: test changes in isolation, without impacting shared environments.
- Fast disaster recovery: recreate known-good states instead of firefighting broken ones.
- Faster recovery: compare an environment with its blueprint and fix it through a normal release.
The real asset isn't the environment. It's the centralized information that makes creating and maintaining environments a repeatable process.
Why Do "Environments" Matter More?
Scenario 1:
Modern agile teams often work on large features in parallel and require dedicated test beds for functional and performance testing.
A developer wraps up their feature and says, "Can I have an isolated environment to test this?" But what they really mean goes beyond just pushing code. It means ensuring that everything (code, dependencies, infrastructure, configurations, and monitoring) is in place and working together. The question is, how long will this take?
Scenario 2:
There is a cloud outage, and the management asks, “Can we switch over to a different cloud region?” Even if you have a copy of your latest data in another region, how long will it take to launch a fully functional environment and switch over?
In cloud-native development, infrastructure is described as Kubernetes clusters, databases, and load balancers. But for developers, infrastructure alone isn't enough. What they truly work with are environments (staging, UAT, production, and preview) where their code runs end-to-end. These environments aren't just collections of infrastructure components; they also include deployments, security policies, observability, and the context necessary to ensure applications function as expected.
The next sections show where environment lifecycle management breaks, and what needs to change.
Exploring Alternatives for Environment Lifecycle Management
Instead of explaining environments as just another infrastructure challenge, let's apply a familiar CRUD (Create, Read, Update, Delete) analogy: how environments are created, inspected, updated, and eventually retired. Each stage follows below.

1. Create: Why does spinning up an environment take so long?
Imagine a developer who wants to launch a new performance testing environment, similar to the regular QA environment, with a higher autoscaling configuration. Ideally, they'd ask once, and everything (code, dependencies, infrastructure, security policies, and monitoring) would come together. If the line between a dev environment and a test environment is new to you, start with what a dev environment is.
Traditional Approach:
Creating an environment takes days or even weeks. It often requires:
- Multiple teams to handle different components.
- A long runbook with manual steps: setting up networking, base infrastructure through IaC, secrets, credentials, deployment pipelines, databases, and domains.
Over time, the runbook itself becomes stale and outdated.
What Needs to Change?
- Declarative: describe the environment you want, instead of the steps in a runbook:
- Requirements specified by the developers, e.g., a Postgres
- What builds to select, e.g., the master branch
- Which configurations to override, e.g., autoscaling limits
- These definitions should live in a single source of truth, inheriting standard configurations while overriding specific characteristics where necessary.
Every environment runs the project's blueprint and differs only through overrides, for example 10 replicas in production only. Launching one is a request: you pick the cloud account and the overrides, and the module contracts apply as they do everywhere else. Environments and releases shows how this works.
A dependent environment goes further. It inherits a base environment's live infrastructure and deploys fresh only the services you name. That keeps an environment for one branch cheap. Why Facets: Environments as a commodity explains the wider model.
2. Read: Why is information about an environment scattered?
A common frustration in software teams is not knowing what's running where. A developer investigating a performance issue might ask:
- "Are all production environments affected, or just one?"
- "When was the last release deployed?"
- "Did Ops modify any configurations?"
Traditional Approach:
- Scattered tools force teams to dig through logs, dashboards, and release management for answers, where information may not be consistently tagged.
- Configuration changes lack visibility, making debugging slow and frustrating.
- Cloud resources are tagged with environments, but are all assets of environments consistently tagged like configurations, change sets, and metrics?
What Needs to Change?
- Explicit lineage: Every environment should have traceability from teams to resources and configurations
- Changesets: e.g., what all changes have been pushed to an environment in the last 6 hours?
- Configurations: e.g., how does one environment configuration differ from others?
- Alerts and more: what are the open alerts in my production environment?
- Cost: e.g., what is the cost of my QA environment?
- Developers should have instant access to environment data through a single, centralized view.
Most differences in behavior between two environments come from one flag or one override. Facets records them, so the answer is a lookup instead of a hunt:
- What changed: each resource's release history lists every change, who made it and when.
- How this environment differs: the blueprint vs. override comparison shows exactly where one environment departs from the blueprint.
- What is firing: every environment runs Prometheus, Grafana and Alertmanager.
- What it costs: Cloud Cost Explorer shows spend per environment (Enterprise plan, on AWS and Azure).
Operations, debugging and cloud cost covers each of these.
3. Update: How do I push changes consistently?
Updating an environment should be routine. Today it is a high-stakes, fragmented process, spread across the owners of code, configuration, infrastructure, databases, monitoring and alerts, each with pipelines of their own.
Traditional Approach:
- Code, infrastructure, and configurations have separate pipelines, creating unnecessary inter-pipeline dependencies.
- Updating an environment means triggering multiple pipelines in a specific order.
What Needs to Change?
- A single environment orchestrator:
- Plans the order and the wiring from one declared model, so no team owns a pipeline per environment.
- Ensures eventual consistency across environments.
- Eliminates the need for ticket-based infra changes.
- A system where developers can deploy, provision resources, and update configurations without depending on Ops.
Every update, from a code deployment to a configuration or secret change, follows one process: Facets plans and runs it as a release from the blueprint. Once an environment is launched, people scale resources, change configuration or deploy a new version through the same flow.
Every update is a release, and every release is checked. Facets shows the Terraform plan, guardrail policies check it, and an approval rule can hold it for a person. If a change turns out wrong, you roll that resource back to an earlier release. Verify and release explains why this check matters, and approvals and guardrails gives the rules.
4. Delete: Why Do Old Environments Linger?
Ever heard someone say, "Do we still need that test environment?", only to realize it's been running for months, racking up cloud costs?
Traditional Approach:
- Cleaning up environments is manual and risky.
- No automated cleanup rules, leading to resource sprawl.
- Teams hesitate to delete environments, fearing accidental loss of critical data.
What Needs to Change?
- Time-sensitive environments: scale workloads to zero outside active hours, or launch and destroy the environment on a schedule.
- Short-lived environments: tear down automatically after a set time, which suits branch and pull-request environments.
- Protection where it matters: a critical resource needs a separate permission to delete, so cleanup cannot take a production database with it.
An environment's type sets its lifecycle. For example, a dev environment can run from 9 a.m. to 9 p.m., scale down at night and scale up again in the morning.
A time-sensitive environment uses one of two rules. Scale up and scale down scales Deployments and StatefulSets to zero and disables CronJobs, while the cluster and cloud resources stay, so it recovers fast. Launch and destroy removes the cluster and its infrastructure and builds them again for the next active window. It saves the most and recovers slower. A short-lived environment runs its teardown on a timer. When an environment is no longer needed at all, Facets destroys its resources through a release.
Proof: Purplle cut non-production infrastructure costs by 70%.
Environments for agents
The same lifecycle now serves a new kind of user. A coding agent writes a change in minutes, and then the change needs somewhere to run. An AI agent can only run what it can verify, and for an infrastructure change the safest place to verify it is an environment built for that purpose.
A short-lived environment built from the blueprint gives the agent that place. Its change runs there first, inside the same module contracts, policies and approvals that apply everywhere else. The agent asks for the environment like any developer would. It gets no extra access, and the environment tears itself down when the test is done.
Conclusion: A New Approach to Environment Management
Traditional environment management is slow, fragmented, and resource-intensive. Developers deal with inconsistent environments, DevOps teams are bogged down by manual configurations, and organizations end up wasting time and cloud costs on inefficiencies.
What Needs to Change?
- Environments should be commodities, not assets: treating environments as first-class entities ensures they are consistently available and reliable.
- Declaration should replace manual intervention: fewer runbooks and ad-hoc scripts means faster, repeatable changes.
- Visibility should be centralized: developers should have access to clear lineage tracking, monitoring, and configuration changes.
- Environment cleanup should be proactive: schedules and automatic teardown keep cloud costs under control.
And here are the benefits that you can expect:
- Environments that match: every environment comes from the same blueprint, and a release with Refresh finds changes made outside Facets and puts them back.
- Reducing Complexity: No more Terraform sprawl, manual Helm charts, and brittle runbooks.
- Saving Time: Capillary reduced the effort to launch a new region from 64 person-weeks to 4 (a 93.75% reduction), so DevOps can focus on high-value work.
- Lowering Costs: Schedules and automatic teardown keep non-production spend down.
See how teams run this in environment management, or book a demo.
Read next: What is a dev environment?, the ideal development environment and Kubernetes fleet management.
