Menu

The Minimum IAM Policy for an S3 Web Client: One Bucket, Least Privilege
📰

The Minimum IAM Policy for an S3 Web Client: One Bucket, Least Privilege

DEV Community: cloud·Opndrive·9 days ago
#zTPHnvms
#devtocloud#devto#dev#bucket#policy
Long article (3491 words) — no AI summary yet.
Reading 0:00
15s threshold

The quickest policies to give a web file manager’s access key are the broad ones. AWS’s managed AdministratorAccess policy allows "Action" : "*" on "Resource" : "*" , and AmazonS3FullAccess allows s3:* on every resource, so either key works on every bucket in the account.

AWS’s IAM guidance is to “grant only the permissions required to perform a task” , and it warns that AWS managed policies “might not grant least-privilege permissions” for your use. It prefers temporary credentials, but names third-party clients that don’t support IAM Identity Center as the case for an IAM user’s long-term access keys, which is where a web client sits.

This guide trims AWS’s one-bucket example to browse, upload, download and delete, adds what large uploads need, and shows how to test the result with a throwaway user.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.