coiai Logo

This article is an English translation of the original Japanese post. Read the Japanese original →

Amplify + React: From Setup to Deployment

March 17, 2025

Categories: React · Tags: Amplify, AWS

Amplify + React: From Setup to Deployment

This post is a set of notes on the steps to build and deploy a React project using AWS Amplify.

Steps

Initial Amplify Setup

Install the Amplify cli.

npm install -g @aws-amplify/cli

Next, configure your AWS cli credentials. This requires creating an IAM user and granting permissions in the console beforehand.

amplify configure

Initializing the Amplify Project

Move into your existing React project directory and run the following commands.

cd your-react-project
amplify init

You'll be asked a series of questions interactively — just answer them one by one.

Adding an API

amplify add api

Add the necessary packages like this.

Pushing the Changes

Once everything is done, push it.

amplify push

Deployment

There are two ways to deploy: one is to keep using the CLI as-is, and the other is to deploy through the web using the AWS Amplify console.

First, here's the CLI method.

amplify add hosting
amplify publish

That's all you need.

For the other option — deploying via the web — go to the amplify console and connect your GitHub repository to deploy.

Reference

Here's a link to the video I used as a reference.

Amplify + React: From Setup to Deployment | coiai Inc.