Minimal IAM Policy for an S3 Web Client Limited to One Bucket

A guide on DEV Community sets out an IAM policy for a browser-based S3 file manager that restricts access to a single bucket. Broad managed policies such as AdministratorAccess and AmazonS3FullAccess grant wide permissions across all resources, which the author argues conflicts with AWS's own least-privilege guidance. The proposed policy is trimmed from AWS's one-bucket example and covers browsing, uploading, downloading and deleting, split into bucket-level and object-level statements. It also adds the actions needed for multipart uploads of large files, and the author recommends testing the result with a temporary user. The article notes that other providers such as R2, B2, Wasabi, MinIO and Spaces scope keys differently.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in