# Environment

## # unSkript Environments

{% hint style="info" %}
NOTE: Environments are only available online, and not in the Docker deployment.
{% endhint %}

It is pretty common to have multiple environments for your cloud (dev, staging, production, etc.), each using similar infrastructure, but with different credentials.

With unSkript environments you can configure your xRunBooks to run in all of your environments with no modifications. This ensures that the XRunBook is the source of truth, and there is no worry about source control across your environments.

### Creating an Environment

1. Navigate to the Proxy you wish to add an environment to. Click "+Add Environment." You'll be prompted to name your environment

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2Fd3KCl4QoQTsVtxgrocjK%2FScreenshot%202022-12-23%20at%2015.10.07.jpg?alt=media&#x26;token=f283c512-ec9a-47c5-bd54-4162822dd67a" alt="Naming your environment"><figcaption></figcaption></figure>

2\. You'll next be prompted to select some of the services that will connect to the environment. In the example below, AWS and Slack are selected:

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FCpLPEFxSCfE8BMZWWkoN%2FScreenshot%202022-12-23%20at%2015.10.25.jpg?alt=media&#x26;token=199cd530-3318-4b7d-b15a-ffaa83911851" alt="Connection picker"><figcaption></figcaption></figure>

3\. Your environment will be created. Now, it is time to edit your Connectors. In the list of environments, click your new environment, and "Open Details."

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FvAgB0XRzb5zBtbJ0oMKU%2FScreenshot%202022-12-23%20at%2015.14.42.jpg?alt=media&#x26;token=16dbf1c9-a28a-48dd-8f31-8fa2758a9609" alt="screenshot of a new environment"><figcaption></figcaption></figure>

Now, we will edit each Connection with the credentials needed to connect to the service. We have [detailed instructions](https://docs.unskript.com/unskript-documentation/connnecting/connectors) for each connection type. Additionally, add a ServiceId to each Connection. In this case, we'll use ServiceId with the format "\<appname>\_\<connection>" - meaning that we'll use 2 ServiceIds here: "test\_aws" and "test\_slack":

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FcN3CwcweDNTBV7adGWfm%2FScreenshot%202022-12-23%20at%2015.27.46.jpg?alt=media&#x26;token=2632c64b-786b-4e01-94db-c1005337d6b9" alt="connectors with added credentials"><figcaption></figcaption></figure>

Now, you can create a similar environment called "test\_production", and add in different credentials for AWS and Slack (but be sure to use the same ServiceId value):

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FBGG1uL54uP37Xq0FJckk%2FScreenshot%202022-12-23%20at%2015.35.29.jpg?alt=media&#x26;token=2162c877-eb0b-4552-b3c7-ccfc51bd8216" alt=""><figcaption></figcaption></figure>
