QuestionQ56

VerifiedIdentity and Access Management

An IAM user gets an Access Denied message while attempting to access objects in an Amazon S3 bucket. The user and the S3 bucket are in the same AWS account. The S3 bucket is configured to use server-side encryption with AWS KMS keys (SSE-KMS) to encrypt all its objects at rest with a customer managed key from that same AWS account. The S3 bucket has no bucket policy configured. The IAM user has permissions from an IAM policy that allows kms:Decrypt on the customer managed key. The IAM policy also allows s3:List* and s3:Get* for the S3 bucket and its objects.

Which of the following could be a reason the IAM user cannot access the objects in the S3 bucket?

Explanation

An IAM policy that allows kms:Decrypt is effective for a customer managed KMS key only when the KMS key policy also permits the AWS account to use IAM policies to grant access, or directly permits the principal. If the key policy’s account-full-access statement was removed, the IAM user’s kms:Decrypt permission can be ineffective, preventing decryption of the SSE-KMS–encrypted S3 objects.

Learn more

Community Discussion

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