February 14, 2025: This post was updated with the recommendation to restrict S3 bucket access to an IAM role by using the
aws:PrincipalArncondition key instead of theaws:useridcondition key.
April…
Article Source
https://aws.amazon.com/blogs/security/how-to-restrict-amazon-s3-bucket-access-to-a-specific-iam-role/