DEV Community

Cathy Casey-Richards
Cathy Casey-Richards

Posted on

2 2

Tutorial: Using AWS Amplify to deploy your website

AWS Amplify is a tool for developing and deploying web and mobile applications. In this article, we’ll be focusing on the deployment capabilities of AWS Amplify and how you can use this tool to quickly & securely deploy a website.

For connecting your app to Amplify, there are multiple Git repo options or you may choose to build your own artifacts and manually upload when deploying. For this example, we’ll use GitHub.

Alt Text

You will be prompted to authenticate with GitHub and allow Read Access for Amplify to listen on pushes to a given branch and pull from your repo to kick off a build. Once you’ve successfully authenticated, you can select which repository & branch you’d like to deploy. Keep in mind that Amplify will automatically rebuild anytime you push to the branch you've selected.

Alt Text

In the next step, you’ll be asked to configure build setting for this application. If you’re using Node.js, your build spec may be as simple as the following:

version: 0.1
frontend:
  phases:
    preBuild:
      commands:
        - npm ci
    build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*
Enter fullscreen mode Exit fullscreen mode

Once you’ve customized your build spec, you can proceed to the next step and deploy your application! This should take just a few minutes depending on how complex your build is, and then your app will appear in the Amplify console.

Here, you can see the information for the last deployment, including build status, build output, and a link to where your app is being hosted.

Alt Text

And there you have it! Your web app is now deployed and waiting to be rebuilt whenever your changes are ready.

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay