LoginSignup
5
3

More than 5 years have passed since last update.

s3cmd sync に必要なIAMポリシー

Posted at

全アクションをつけた上で1行ずつ消していくというアホみたいなことをやった結果、
下記でよいらしいということが判明。

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1446117060000",
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:ListAllMyBuckets",
                "s3:ListBucket",
                "s3:PutObject"
            ],
            "Resource": [
                "arn:aws:s3:::*"
            ]
        }
    ]
}

s3cmd sync test-directory s3://bucket-name/ とかやって検証してみました。
s3cmdのバージョンは下記です。

# s3cmd --version
s3cmd version 1.5.1.2
5
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
5
3