2
6

More than 3 years have passed since last update.

Route53 + CloudFront + S3で静的サイトを公開する

Posted at

https://qiita.com/buta/items/06a7e147d865fb862783
https://dev.classmethod.jp/cloud/aws/tls-for-s3-web-hosting-with-cloudfront/

CloudFront + S3 で静的サイトを運用する際の注意点
https://qiita.com/ooxif/items/d28b7caf72bf5290588c
構成による違いについて、後で確認する

構成

image.png

S3

バケットを作成し、静的サイトホスティングを行う。

CloudFront

  • Alternate Domain Namesは指定しない(Route53でドメイン指定する為
  • Restrict Bucket Access: yesにチェック。(Yes: S3のURLで直接アクセスを拒否する。)
  • カスタムドメインを利用する場合にはSSL証明書が必要

Route53

  • CloudFrontで利用するドメインを設定する
  • CertificateManagerで生成する証明書のDNS検証の為CNAME設定を行う(CertificateManagerで「Route53でのレコード作成ボタン」を押すと自動で設定してくれる)

参考

2
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
6