# Environment Mapping

The **Environment Mapping** feature enables users to map Spinnaker accounts with custom-defined environments such as Development, Staging, and Production. By mapping these accounts, the feature facilitates accurate identification of deployments within each environment. The mapped accounts are also utilized to populate environment-specific deployment data on the **Deployment Insights** page.

Navigate to **Setup** > **Environment Mapping**. The page with the environments and its account details are displayed as shown below:

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F6tg4k1acX73ylMMVH7wM%2Fenviron%20map%201.png?alt=media&#x26;token=66462e6a-1cbe-4386-b15c-76239dcd8100" alt=""><figcaption></figcaption></figure>

### Import Mapping

Clicking the **Import Mapping** button allows you to import the configured Spinnaker accounts. Once the accounts are populated, you can edit the records to complete missing fields such as **Environment** and **Namespace**, ensuring accurate identification of deployments for each environment.

This button can also be used after adding new accounts to continuously update the mapping and include the newly added accounts.

Once you import the file you get a success message as shown:

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F6rPHabuPccR4TAVcsaNV%2Fenviron%20map%20import%20mappin.png?alt=media&#x26;token=991d029a-6747-4667-89ba-033f1d97b169" alt=""><figcaption></figcaption></figure>

### Bulk Import

Clicking the **Bulk Import** button allows you to upload a custom JSON file containing a list of configured accounts. Ensure that the JSON file includes accurate details, such as the **Account Name** and **Namespaces**, to enable successful import and mapping of accounts.

Once you import the file you get a success message as shown:

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FFR94d3rr0as4rAQpNfsu%2Fenviron%20map%20bulk%20import.png?alt=media&#x26;token=480de4b6-62fb-455b-96bb-d3c7206789f2" alt=""><figcaption></figcaption></figure>
