0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[AWS]S3の設定手順

Posted at

背景

S3はかなり使うAWSのサービスのため、設定手順をまとめて備忘録とする。

手順

1.S3のページに行き、「バケットの作成」をクリック

2.バケット名を作成し、リージョンを東京に設定

3.「パブリックアクセスを全てブロック」のチェック外す

4.新規のパブリック〜、あらゆるパブリック〜、にチェックを入れる

5.内容を確認し作成

6.IAMページからユーザーを選択する

7.ユーザーのARNをコピーしておく

8.S3のページに行き、バケットを選択

9.「アクセス権限」→「バケットポリシー」をクリック

10.以下を入力し保存する

{
    "Version": "2012-10-17",
    "Id": "Policy1544152951996",
    "Statement": [
        {
            "Sid": "Stmt1544152948221",
            "Effect": "Allow",
            "Principal": {
                "AWS": "ユーザーのARN"
            },
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::バケット名"
        }
    ]
}
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?