Introduction

The objective of this guide is to walk through the process of setting up a static website and creating redirects using Amazon Web Services (AWS). This involves the following steps:

Instructions

Set up Domain with Route 53

Register or transfer your domain to Route 53.

Once the domain is in Route 53, create a hosted zone for the domain.

Make note of the NS records AWS assigns to your domain, you'll need these later.

aws route53 create-hosted-zone --name example.com --caller-reference 2023-06-14-01

If transferring or migrating from a different service please refer to this document.

Create SSL certificate with Amazon Certificate Manager (ACM)

In the ACM console, request a public certificate.

Input your domain name and validate ownership, either through DNS validation or email validation. If your domain is already in Route 53, DNS validation can be done automatically.

Once validated, the certificate is issued. Note down the ARN (Amazon Resource Name) for the certificate.

This process is not typically done through CLI due to the complexity of the certificate validation process.