Environment Management #
TLDR; With Internal Developer Platforms (IDPs) developers can self-serve fully provisioned environments on demand. This removes a lot of bottlenecks and enables faster delivery. Each new environment is provisioned as defined by the platform team.
From a developer perspective, Environment Management is one of the most interesting components of an Internal Developer Platform. In many existing setups, setting up a new environment typically involves waiting for someone else (most likely the Ops team) to create and configure the new environment. This is annoying for everybody involved and also costly. An Internal Developer Platform eliminates all the required manual steps and enables self-service for the developer (or other people in your team): spin up a new environment whenever needed. At the same time, IDPs enable engineering organizations to sunset environments when no longer needed. Thanks to the transparency on usage and dependencies provided by the IDP, environments can be sunset on demand without risks, helping manage costs.
Typical challenges without an Internal Developer Platform #
There are a number of typical challenges when it comes to Environment Management. Some of them are quite obvious and some are not.
- Typically, setting up a new environment requires reaching out to another team (e.g., the DevOps or platform team). You then have to wait for the other team to provide you with the requested environment. This might take hours if everything is well organized but might also take days or even weeks if the team is working on other priorities.
- When setting up new environments is difficult, you will most likely not switch off environments when not in useInstead you will just keep them in case you need them again. This results in resources idling (but still costing money).
- Not being able to create new environments when needed can have a significant impact on your speed of delivery. An example is when shared environments are blocked for days or even weeks because one team needs to test a hotfix that needs to go to production asap, or because QA is testing a new feature that is hard and time-consuming to test. While these environments are blocked, other teams are not able to test their own new services or features. Be aware that this is not an infrequent problem (as in the cases mentioned) but happens every single day on a lesser basis.
In general, infrastructure, application configurations, and the real environments are often managed in silos from both, a technical as well as an organizational point of view. The following picture illustrates this:
Typical approach with an Internal Developer Platform #
An Internal Developer Platform typically connects infrastructure (see also Infrastructure Orchestration), application configurations (see also Application Configuration Management), and the management of environments. The following picture illustrates this.
There are a number of different elements in how Internal Developer Platforms support Environment Management:
- Self service: Self-service: an Internal Developer Platform allows platform teams to build golden paths for the rest of the engineering organization, while enabling self-service for development teams. The IDP lets engineering organizations of all sizes enforce a Declarative Application Model, where developers can specify environment agnostic configurations for their workloads (e.g., env variables, dependencies, etc.), valid across all environments and stages of the delivery pipeline. The IDP matches the environment agnostic configurations to the workload and infrastructure profiles that the platform team establishes across the entire organization and dynamically creates new manifests and config files at deployment time. Internal Developer Platforms typically provide different ways to create new environments via a user interface (UI), a command-line interface (CLI), or an API - which is typically the best solution for fully-automated environment creation (e.g., for automated end-to-end tests). An Internal Developer Platform should also support automated teardown or pausing of environments if they are not needed to avoid unnecessary costs.
- Environments types: Typically, an Internal Developer Platform allows the DevOps team to define different types of environments (see also
Infrastructure Orchestration). This ensures new environments are created with reasonable infrastructure requirements (e.g., small machines for
developmentenvironments and a powerful setup for