QuestionQ77

VerifiedIdentity and Access Management

A company needs to deny a particular federated user, Bob, access to an Amazon S3 bucket named DOC-EXAMPLE-BUCKET. The company wants to satisfy this requirement by using a bucket policy. The company must also ensure that the bucket policy affects only Bob’s S3 permissions; all other permissions Bob has must remain unchanged.

Which policy should the company use to meet these requirements?

Explanation

An S3 bucket policy can explicitly deny s3:* access to the bucket for one specified principal. An AWS STS federated user is identified in a resource-based policy by an ARN in the form arn:aws:sts::account-id:federated-user/user-name; therefore, a Deny for arn:aws:sts::account-id:federated-user/Bob targets Bob’s S3 access to this bucket only. It leaves permissions to other AWS services unaffected.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!