LoginSignup
1
3

More than 5 years have passed since last update.

AWS S3でのコンテンツ配信

Posted at

AWS S3に画像等を配置しても、そのままではwebサイトやアプリからは参照できない。
ちなみに、cloudFront経由、独自ドメインで配信するやり方については
AWS S3の画像等のデータをCloudFront経由で配信する
を参照してください。

手順

1, バケットを開いた状態で、[プロパティ]→[アクセス許可]を選択
2, [バケットポリシーの編集]を押し、下記を挿入

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{バケット名}/*"
        }
    ]
}
1
3
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
1
3