# Step 5: Deploy the Compute stack

Install the Compute 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-Compute**' and use the parameters shown below.

---

#### CloudFormation Template URL

```
https://sandbox-studio-software-dist.s3.amazonaws.com/versions/<VERSION>/SandboxStudio-Compute.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

<table class="w-fit min-w-(--thread-content-width)" data-end="8251" data-start="7942" id="bkmrk-key-what-to-enter-na" style="height: 120px; width: 108.929%;"><thead data-end="8003" data-start="7942"><tr data-end="8003" data-start="7942"><th class="align-left" data-col-size="sm" data-end="7963" data-start="7942" style="width: 31.466%;">**Key**</th><th class="align-left" data-col-size="sm" data-end="8003" data-start="7963" style="width: 68.534%;">**What to enter**</th></tr></thead><tbody data-end="8251" data-start="8066"><tr data-end="8127" data-start="8066"><td data-col-size="sm" data-end="8087" data-start="8066" style="width: 31.466%;">**Namespace**</td><td data-col-size="sm" data-end="8127" data-start="8087" style="width: 68.534%;">Use the same namespace you used in step 1.</td></tr><tr data-end="8189" data-start="8128"><td data-col-size="sm" data-end="8149" data-start="8128" style="width: 31.466%;">**OrgMgtAccountId**</td><td data-col-size="sm" data-end="8189" data-start="8149" style="width: 68.534%;">12‑digit **management** account ID</td></tr><tr data-end="8251" data-start="8190"><td data-col-size="sm" data-end="8211" data-start="8190" style="width: 31.466%;">**IdcAccountId**</td><td data-col-size="sm" data-end="8251" data-start="8211" style="width: 68.534%;">12‑digit **management** account ID</td></tr></tbody></table>

<div class="_tableContainer_sk2ct_1" id="bkmrk--2"><div class="_tableWrapper_sk2ct_13 group flex w-fit flex-col-reverse" tabindex="-1">  
</div></div>---

#### About this Stack

**Purpose**

- Deploys the core backend components that respond to events and orchestrate workflows such as **new account setup** and **account cleanup**.

**Where to deploy**

- **Hub account**.

**What it creates**

- **Amazon EventBridge** rules.
- **AWS Lambda** functions that react to events and perform application logic.
- **Amazon SQS** queues to drive asynchronous processing.
- **AWS Step Functions** for multi‑step workflows.
- **AWS CodeBuild** projects used during setup/cleanup tasks.

**Dependencies**

- Requires **Network** (for VPC‑attached Lambdas) and **Data** (to read/write application state). If notifications are used, it may reference **SES** templates.

**Validation checks**

- EventBridge rules are enabled.
- Lambda functions deploy successfully and, where configured, attach to the VPC subnets.
- SQS queues and Step Functions state machines are present.

**Tips**

- Become familiar with logs/metrics produced by compute components in **Amazon CloudWatch** and monitor for errors.

<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><div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--7"><div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--8"></div></div><div _ngcontent-ng-c3818350049="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="bkmrk--9"></div>