# Deploying the Brain ## Overview In this lab you will be using AWES CloudFormation to deply the Vectra Brain. AWS CloudFormation provides a common language to describe and provision all the infrastructure resources in your environment in a safe, repeatable way. ## Brain Deployment Before you start download the [CloudFormation Template](./mainTemplate_6.19.json) You will also need to make sure you have a **provisionToken** procived by doing a Ultimate Case, or provided by TME or Enablement. ### Deploy The Brain 1. In the search bar, search for **Cloud Formation** 2. Click on **CloudFormation** 3. From the **Create stack** dropdown, select **With new resources (standard)** 4. Select **Template is ready**, and **Upload a template file** to upload the **mainTemplateFromBrain.json** you downloaded earlier  5. Click **Next** 6. Fill in the following fields below: - **Stack name** - *initials*-stack - **baseName** - *initials*-brain - **instanceTyoe** - r5d.2xlarge - **mgtSubnet** - *initials-project-private1-us-west-2a - **mgtVPC** - *initials*-project-vpc - **provisionToken** - *provided by Instructor or TME/Enablement - **publicIP** - True - **sshKey** - *initials*-key  7. Click **Next**, and then click **Next** again 8. Review your stack config, and then click **Create stack** ### Validate The Brain Deployment 1. Go to **CloudFormation > Stacks** 2. Search for ***initials*-stack** 3. Verify the deployment shows **CREATE_COMPLETE** 4. Now lets go look at the instance in EC2. Go to **EC2 > Instances > Instances** 5. Search for your ***initials*-brain** instance, and click into it and verify the details. ### Security Group We need to edit our sucurity group, and add a new Inbound rule.