You can iterate through the items in an S3 bucket and print the names with this Ruby
snippet. It assumes you already have the AWS Ruby SDK installed. Remember to set the
details for your_access_key, your_secret_access_key and bucket_name as appropriate
for your bucket.
Amazon’s AWS IAM
(Identity and Access Management) can be very useful for a number of things. You
can create a user and grant access to an S3 bucket in order to be able to use the
API to manage the bucket instead of the AWS console web interface.