Add hosting and publish your React application

3.1. Add hosting to your Amplify project.

amplify add hosting
  • ? Select the plugin module to execute Amazon CloudFront and S3
  • ? Select the environment setup: PROD (S3 with CloudFront using HTTPS)
  • ? hosting bucket name (Use default)

3.2. Publish your React application.

amplify publish
  • ? Are you sure you want to continue? Yes

3.3. After your app is published, use the endpoint resulted to get into your application.

This may take a few minutes to create the Amazon CloudFront distribution.

CloudFront Dist

CloudFront Frontend