0
0

More than 1 year has passed since last update.

S3ウェブサイトホスティング

Posted at

前提

ドメインはお名前どっとこむで取得したものを利用。

やりたいこと

S3ウェブサイトホスティングでサイトを表示する。

手順

割愛。

設定値メモ

<S3バケット アクセスポリシー>

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::(バケット名)/*"
        }
    ]
}

<S3ブロックパブリックアクセス>
オフ

注意点

  • S3バケット名はドメイン名と完全一致にすること(例:xxxx.com)。ただし、現時点では独自ドメインは利用していない。

以降の記事で、Route53やCloudFrontと接続させる予定。

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