Environment
An environment is the place where your team runs one stage of an application on one platform. Each environment belongs to a workspace. Application teams work with environments instead of projects and tenants, so they only need to learn one word.
Environments are available when an admin turns on Environments. The setting is in beta.
How an Environment Works
Behind every environment there is a project with exactly one tenant. The environment runs on the landing zone of its tenant and has the members, tags and payment method of its project.
While environments are on, a project cannot get a second tenant, and tenants cannot be moved to another project. meshStack refuses both in meshPanel and in the meshObject API. The meshObject API and the Terraform provider keep working with projects and tenants.
Creating an Environment
You create an environment in one step: you give it a name, pick a landing zone and fill in the tags. meshStack creates the project and its tenant together. See How to Manage a Project for the steps.
The Setup Building Block
Every environment is led by the building block that sets it up, for example by creating the AWS account. While the setup building block is missing, the environment offers the building block definitions of its landing zone that can set it up. You can add other building blocks after the setup building block exists.
Building Blocks in an Environment
The workspace overview shows one box per environment with the building blocks that run in it. The page of an environment shows all its building blocks, starting with the setup building block, and draws which building block depends on which. You can delete the environment from this page.
When you add a building block to an environment, the marketplace shows only the building block definitions that support the platform and the landing zone of the environment.
Projects With Several Tenants
Projects that you created before you turned on environments can have several tenants. They keep them, and meshPanel shows such a project as one environment per tenant, named after the project and the platform of the tenant. These environments share the members and tags of the project, so a change to them applies to all environments of the project.