In this lesson we learn how to deploy your React application to AWS using the Amplify CLI & Amazon S3.
Instructor: [00:02] To add hosting, we can run amplify add hosting. For the environment setup, we can either choose dev for S3 with HTTP or prod for S3 with HTTPS with CloudFront distribution. I'll choose dev.
[00:16] Next, we're prompted for the bucket name. Give the bucket a unique name. For the index doc and the error doc, we can choose index.html.
[00:31] To deploy our new setup, we can run amplify publish. Once the deployment is complete, our app should launch in a new window. If we open the URL, we see that the app is indeed running from our S3 bucket.