📜  拼接机 s3 访问 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:27.430000             🧑  作者: Mango

代码示例1
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
              "s3:PutObject",
              "s3:GetObject",
              "s3:GetObjectVersion",
              "s3:DeleteObject",
              "s3:DeleteObjectVersion"
            ],
            "Resource": "arn:aws:s3::://*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::",
            "Condition": {
                "StringLike": {
                    "s3:prefix": [
                        "/*"
                    ]
                }
            }
        },
        {
            "Effect": "Allow",
            "Action": "s3:GetAccelerateConfiguration",
            "Resource": "arn:aws:s3:::"
        }
    ]
}