0
0

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 1 year has passed since last update.

AWS ポリシー S3 指定バケットだけFullAccess許可するユーザーポリシー

Posted at

概要

  • 特定のS3バケットだけFullAccess許可をするユーザーポリシーをまとめる。

結論

  • 特定のS3バケットだけFullAccess許可をするユーザー定義ポリシーを先に記載する。

    {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": [
                  "s3:*",
                  "s3-object-lambda:*"
              ],
              "Resource": "S3バケットのリソースネーム(arn)"
          }
      ]
    }
    

  • 例えば筆者のmiriwo-testバケットのみFullAccessを許可したい場合は下記の様になる。(S3バケットのリソースネームはバケットの「プロパティ」の「バケットの概要」に記載されている。)

    {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": [
                  "s3:*",
                  "s3-object-lambda:*"
              ],
              "Resource": "arn:aws:s3:::miriwo-test"
          }
      ]
    }
    
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?