# Step 6: Deploy the API stack

Install the API CloudFormation stack in the **hub account**.

#### How to Install this Stack

1. Login to the AWS Management Console using the **Hub Account.**
2. Navigate to the **CloudFormation** page.
3. Click **Create Stack** and select **With new resources (standard)**.
4. For Template Source, select **Amazon S3 URL** and enter the CloudFormation Template URL shown below and click **Next**.
5. On the **Specify Stack** page, enter the stack name '**SandboxStudio-API**' and use the parameters shown below.

---

#### CloudFormation Template URL

```
https://sandbox-studio-software-dist.s3.amazonaws.com/versions/<VERSION>/SandboxStudio-API.template.json
```

For more information on how to find the latest version, [click here](https://docs.sandboxstudiosoftware.com/books/installation-guide/page/aws-cloudformation-templates "AWS CloudFormation templates").

---

#### Parameters

<div class="_tableContainer_sk2ct_1" id="bkmrk--2"><div class="_tableWrapper_sk2ct_13 group flex w-fit flex-col-reverse" tabindex="-1">  
</div></div><table id="bkmrk-key-what-to-enter-na" style="width: 100.238%; height: 148.984px;"><thead><tr style="height: 29.7969px;"><th class="align-left" style="width: 23.6152%; height: 29.7969px;">**Key**</th><th class="align-left" style="width: 76.3848%; height: 29.7969px;">**What to enter**</th></tr></thead><tbody><tr style="height: 29.7969px;"><td style="width: 23.6152%; height: 29.7969px;">**Namespace**</td><td style="width: 76.3848%; height: 29.7969px;">Use the same namespace you used in step 1.</td></tr><tr style="height: 29.7969px;"><td style="width: 23.6152%; height: 29.7969px;">**OrgMgtAccountId**</td><td style="width: 76.3848%; height: 29.7969px;">12‑digit **management** account ID</td></tr><tr style="height: 29.7969px;"><td style="width: 23.6152%; height: 29.7969px;">**IdcAccountId**</td><td style="width: 76.3848%; height: 29.7969px;">12‑digit **management** account ID</td></tr><tr style="height: 29.7969px;"><td style="width: 23.6152%; height: 29.7969px;">**AllowListedIPRanges**</td><td style="width: 76.3848%; height: 29.7969px;">Comma separated CIDRs allowed to call the API (default “allow all”): `0.0.0.0/1,128.0.0.0/1`</td></tr></tbody></table>

---

#### About this Stack

**Purpose**

- Publishes the application’s **public API** and **front‑end web experience**.

**Where to deploy**

- **Hub account**.

**What it creates**

- **Amazon API Gateway** with Lambda integrations that expose Sandbox Studio APIs.
- The **end‑user web application** for accessing Sandbox Studio.

**Dependencies**

- **Compute** (backend logic) and **Data** (application database) must exist.

**Validation checks**

- API endpoints return healthy responses.
- The web UI loads and users can sign in via **IAM Identity Center** groups created by the **IDC** stack.

**Tips**

- Capture the API base URL and distribute it to administrators and managers.

<div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--4"><div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--5"></div></div><div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--6"></div>