How can you grant another account access to an S3 bucket? Compare the options.
IntermediateConceptIAM Advanced, STS and Multi-Account
Answer
- Bucket policy naming the other account's principal (or
aws:PrincipalOrgIDfor the whole Org) plus an identity policy on their side. - Cross-account role: they assume a role in your account that has S3 access. Credentials are scoped to your account and logged there.
- Access Points with their own policy, good for many consumers.
- Presigned URLs for ad-hoc, time-limited sharing.
We prefer role assumption or org-conditioned bucket policies; avoid ACLs and enable BucketOwnerEnforced.
More on IAM Advanced, STS and Multi-Account
Explain the IAM policy evaluation logic.AdvancedHow does cross-account access evaluation differ from same-account?AdvancedHow does `sts:AssumeRole` work, step by step?IntermediateWhat is the difference between AssumeRole, AssumeRoleWithWebIdentity and AssumeRoleWithSAML?IntermediateWhat is a permission boundary and when would you use one?IntermediateWhat do Service Control Policies do and not do?Intermediate