简体   繁体   English

AWS IAM S3 策略

[英]AWS IAM S3 Policy

I currently have AWS Policy that grants a user account access to create new users with limited access to IAM and S3我目前拥有 AWS 策略,该策略授予用户账户访问权限以创建对 IAM 和 S3 具有有限访问权限的新用户

How can I reduce the permission of this user further so the user is unable to list all the S3 buckets on my account如何进一步降低此用户的权限,以便用户无法列出我账户中的所有 S3 存储桶

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iam:PutUserPolicy",
                "iam:GetUser",
                "iam:CreateUser",
                "iam:CreateAccessKey"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "cloudformation:*"
            ],
            "Resource": "*"
        }
    ]
}

It is not possible to limit the list of buckets presented to a user.无法限制呈现给用户的存储桶列表。 Either they have permission to list all the buckets in an account, or they do not have permission to list any buckets.他们要么有权列出账户中的所有存储桶,要么无权列出任何存储桶。

The ability to list buckets is separate to the ability to list the contents of a bucket.列出存储桶的能力与列出存储桶内容的能力是分开的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM