Build a Unique Domain Hosting Environment for Google Domains with AWS Amplify

Yasunori Kirimoto - Apr 25 '22 - - Dev Community

img

I built a unique domain hosting environment for Google Domains with AWS Amplify πŸŽ‰

This time, we try using a ".dev" domain obtained from Google Domains with AWS Amplify.

Advance Preparation

  • Static site hosting environment construction with Amplify

Set Up a Unique Domain with Amplify Console

First, set up a unique domain with "Amplify Console."

Set up a ".dev" domain obtained from Google Domains under "Domain Management."
img

Set up redirects and SPA routing support.
img

Click "Domain Management" β†’ "Actions" β†’ "View DNS Records," and note down CNAME information.
img

This completes the Amplify configuration.

Set Up a Unique Domain with Google Domains

Lastly, set up a unique domain with "Google Domains."

Access Google Domains β†’ Click "Manage" of the target domain.
img

Click "DNS" on the management screen of the target domain.
img

Input CNAME information obtained by Amplify β†’ Click "Save." After setting, click "Website."
img

Enter "@" for source and ".dev" for destination domain β†’ Set options β†’ Click "Forward."
img

A preview of the WebSite will be displayed when it has been successfully configured.
img

The WebSite will be displayed when you access the configured ".dev."
img

Finally, I used PageSpeed Insights to measure the performance of the WebSite with the pre-migration deployment environment and the post-migration Amplify (CloudFront & S3). Performance is now much better!
img

Related Articles


References
AWS Amplify
Google Domains

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player