Interview Prep/AWS/IAM Advanced, STS and Multi-Account

How can you grant another account access to an S3 bucket? Compare the options.

IntermediateConceptIAM Advanced, STS and Multi-Account
Answer
  1. Bucket policy naming the other account's principal (or aws:PrincipalOrgID for the whole Org) plus an identity policy on their side.
  2. Cross-account role: they assume a role in your account that has S3 access. Credentials are scoped to your account and logged there.
  3. Access Points with their own policy, good for many consumers.
  4. Presigned URLs for ad-hoc, time-limited sharing.

We prefer role assumption or org-conditioned bucket policies; avoid ACLs and enable BucketOwnerEnforced.

aws All AWS questions Roadmap: AWS core services

More on IAM Advanced, STS and Multi-Account