A SysOps Administrator is configuring cross-account Amazon S3 replication from a source bucket in AWS Account A to a destination bucket in AWS Account B. S3 Versioning is enabled on both buckets, and a replication rule is configured with an IAM role in Account A. Although objects successfully replicate to the destination bucket, IAM users in Account B receive an Access Denied error when trying to read the replicated objects because they are still owned by Account A. Which combination of actions must the administrator take to allow Account B's users to access the replicated objects?
- Configure the replication rule in Account A to override the replica owner to the destination bucket owner, and update Account B's bucket policy to grant the replication IAM role in Account A the s3:ObjectOwnerOverrideToBucketOwner and s3:ReplicateObject permissions.Cevap
- BSuspend S3 Versioning on the destination bucket in Account B to prevent Account A from maintaining object ownership metadata, and update Account B's bucket policy to grant read access to Account B's users.
- CConfigure the replication rule in Account A to use a new KMS key owned by Account B, and grant the replication IAM role the iam:PassRole permission for Account B's KMS key.
- DCreate an S3 gateway VPC endpoint in Account B's VPC, associate it with the route tables of Account B's IAM users, and add a bucket policy in Account B that permits access only through this endpoint.
Cevap
Configure the replication rule in Account A to override the replica owner to the destination bucket owner, and update Account B's bucket policy to grant the replication IAM role in Account A the s3:ObjectOwnerOverrideToBucketOwner and s3:ReplicateObject permissions.
The correct action is to configure the replica owner override option in the replication rule (AccessControlTranslation) and grant the replication IAM role the s3:ObjectOwnerOverrideToBucketOwner permission in both the IAM policy and the destination bucket policy. This transfers ownership of replicated objects to the destination bucket owner, enabling users in Account B to access them.
Adım Adım Çözüm
Anahtar Kavram
Cross-Account S3 Replication Object Ownership Override