# Setting up Environments

## Environments <a href="#environments" id="environments"></a>

Environments are abstractions, where the intent is as follows:

1. Secrets (Variables) can have environment-specific values if you wish to choose so.
2. Clusters can be mapped to an environment, thus creating a gate for CI/CD executions.
3. Microservices can have access to specific environments to prevent any unintentional deploys to any environment.

### Steps to Create an Environment <a href="#steps-to-create-an-environment" id="steps-to-create-an-environment"></a>

1. Once you log in to Ozone, select **Resources** on the left-side bar under **Setup**. After clicking on Resources a menu appears, click on **Environments** to open the new modal window.

<figure><img src="https://3829750647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAObcOkMb6sCSnSdcUOTm%2Fuploads%2FjDeDKvyxWvhglP44V1we%2Fe-1.jpg?alt=media&#x26;token=535489c8-3de6-4ed0-8a41-be6a31b7cb8b" alt=""><figcaption></figcaption></figure>

2. After this users can click on the **+ New Environment** button to open the modal window for an Environment creation.

<figure><img src="https://3829750647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAObcOkMb6sCSnSdcUOTm%2Fuploads%2Fk3vmFbhtp3D3yg0iZxWf%2Fe2.jpg?alt=media&#x26;token=67e78db4-0a2f-422b-bde0-6411f2b855f9" alt=""><figcaption></figcaption></figure>

3. The user can select the environment type according to their use-case, by clicking on the given options.

<figure><img src="https://3829750647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAObcOkMb6sCSnSdcUOTm%2Fuploads%2F3C3klK9SD47QrFXOAKPB%2FScreenshot%202024-05-05%20at%2010.38.54%E2%80%AFPM.png?alt=media&#x26;token=91f8f7a5-468b-4d6e-86b9-d6c44857d66a" alt=""><figcaption></figcaption></figure>

4. Once the necessary details are filled the user can click on create.

<figure><img src="https://3829750647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAObcOkMb6sCSnSdcUOTm%2Fuploads%2FrIO6yp0IyrNVpxcBBcC8%2FScreenshot%202024-05-05%20at%2010.38.54%E2%80%AFPM.png?alt=media&#x26;token=b23686e5-8a4c-4824-a844-c6dde68133c4" alt=""><figcaption></figcaption></figure>

5. Once the Environment is Successfully been created it will be shown in the form of a tabular list, as shown below. In the table list, you can see what type of environment is created.

<figure><img src="https://3829750647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAObcOkMb6sCSnSdcUOTm%2Fuploads%2FQd2OvxvodQXqLYrDuOtZ%2FScreenshot%202024-05-05%20at%2010.39.53%E2%80%AFPM.png?alt=media&#x26;token=c558ffaf-45f0-449a-ae5a-d2353dad652c" alt=""><figcaption></figcaption></figure>
