Perl wrapper script for curl from Amazon to GET/PUT items to/from S3 buckets, adding the required headers to the curl command line.
Download: http://aws.amazon.com/code/128
$ chmod u+x s3curl.pl
$ ./s3curl.pl \
--id [AWS_KEY] \
--key [AWS_KEY_SECRET] \
https://s3.amazonaws.com/[BUCKET_NAME]
Nice little hack here - passing the required x-amz-security-token
HTTP header.
http://www.dowdandassociates.com/blog/content/howto-use-s3curl-dot-pl-with-iam-roles/