# Deployment

{% hint style="info" %}
AWS Amplify is only used from the [@lambdalabs/labs](https://docs.labs.lambdaschool.com/guides/labs-cli/create-labs-react-spa) generator when `program=Labs`

**Note: All your applications MUST be deployed to the "US\_east\_1 Virginia" region!**
{% endhint %}

Navigate to the AWS Amplify console page: `My Account > AWS Management Console > Search "Amplify"`.

![Searching for AWS Amplify](https://tk-assets.lambdaschool.com/6a3082c2-2597-49fd-8fa3-acd5484b5338_Screenshot2020-07-17at18.04.52.png)

Click on "Get Started" underneath the "Deploy" heading.

![Click Getting Started Button](https://tk-assets.lambdaschool.com/6cbf2433-7ca0-4eb5-ad49-92a201481c86_3.png)

Select "GitHub". This will bring up an authorization window. When you have authorized access a message saying "GitHub authorization successful" will display.

![Selecting GitHub](https://tk-assets.lambdaschool.com/a90056e2-d692-4ad8-ad40-c5d7f833d340_5.png)

![GitHub Authorization Confirmation](https://tk-assets.lambdaschool.com/0bfce3ad-ad3c-4d60-b83c-a721d58343f7_5.1.png)

Select your newly cloned project under "Select a repository"

![Selecting Your Repository](https://tk-assets.lambdaschool.com/8028bdd2-97ea-46ca-ba4d-375f275b7544_6.png)

Select the branch you would like to deploy and then click "next". In this example, we are deploying the `main` branch.

![Selecting Your Branch](https://tk-assets.lambdaschool.com/46001b85-27e4-4046-bef8-8cc990f7acba_7.png)

Amplify generates a build configuration automatically for us which is fantastic!

![Automatically Generated Build Config](https://tk-assets.lambdaschool.com/d4c98046-9931-4227-ac6c-a93132064b76_8.png)

* Now we need to add our environment variables. To do so, click on "Advanced settings" to reveal where we can add our required environment variables specified here. After you have added those, click "next".

![Adding Your Environment Variables](https://tk-assets.lambdaschool.com/46c5702a-98b3-47da-a64d-e419c4d0dd60_9.png)

Now you can review that you have configured your deployment properly. Note that Amplify automatically detected that we are building a React project. Sweet!

![Reviewing Your Deployment Settings](https://tk-assets.lambdaschool.com/fcdd3f45-5ab9-4a77-a919-821984fdb60a_10.png)

To accept your settings, click "save and deploy".

![Deploying Your App](https://tk-assets.lambdaschool.com/6a28acec-4718-4cae-8143-7c0cfd6e9b19_11.png)

Now we wait for our deployment to be provisioned, built, deployed, and verified. You can view the logs for the processes by clicking one of the steps and then clicking the dropdown to reveal the console.

![Viewing Deployments Logs](https://tk-assets.lambdaschool.com/2f83ce34-b3f1-4d4f-8f40-4d43cfe6f650_12.png)

After these steps have completed, you're all done! You can click on the autogenerated domain to view your newly deployed application!

![Viewing Your Live Deployment](https://tk-assets.lambdaschool.com/6c776bb0-60cc-4cb9-9aba-56722824849b_13.png)
