Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Deploy Your React Application to AWS Using the Amplify CLI

    nader dabitnader dabit
    reactReact
    awsAWS
    javascriptJavaScript

    In this lesson we learn how to deploy your React application to AWS using the Amplify CLI & Amazon S3.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    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.

    Discuss

    Discuss