LoginSignup
0
0

More than 3 years have passed since last update.

StaticHostingサイトをCloudformationでさっと作る

Last updated at Posted at 2021-03-30

CloudFront経由のStaticHostingサイトをCloudformationで作ります

インフラ生成

こちらで公開頂いているcfnテンプレートを使いました。ありがとうございます🙇🙇🙇

セキュリティについて

なにも設定しなくてもAWS Shield StandardによってDDos対策などは自動的に行われます。

追加のセキュリティルールが必要な場合は、WAFを作成しWebACLIdにて指定します。

S3側の公開設定

上記のインフラ設定の他に、S3側で明示的にリソースの公開許可を行う必要があります。

下記を参考に個別にS3オブジェクトの公開設定を行います。(ファイルが大量にある場合は、バケット単位・パス単位で公開指定しても良いでしょう)

0
0
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
0
0