Introduction
Sometimes you want to control who can see or change files in your cloud storage bucket. Bucket policies let you set rules to allow or block access to your bucket and its files.
When you want to let only certain people or apps read files from your bucket.
When you want to block public access to your bucket to keep files private.
When you want to allow another AWS account to upload files to your bucket.
When you want to restrict access to files based on IP address or time of day.
When you want to log who accessed your bucket for security tracking.