aws☞s3跨账户访问

阅读量: zyh 2017-02-10 11:10:25
Categories: > Tags:
存储桶策略,授权其它账户的某个 iam 资源访问此存储桶
arn:aws:iam::<aws_account_id>:<type>/<name>
{
    "Version": "2012-10-17",
    "Id": "Policy1564021125924",
    "Statement": [
        {
            "Sid": "object1",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::<account-id>:role/<role-name>"
            },
            "Action": [
                "s3:Get*",
                "s3:List*"
            ],
            "Resource": "arn:aws:s3:::<open-bucket>/<open-path>/*"
        }
    ]
}