During the startup of a Linux AMI, I would like to download some data (like the sun java libraries and some proprietary software) from an S3 bucket while initializing my EC2 connection. I notice that one way to do this is to use s3cmd. BUT, how do I get the configuration file for s3cmd .s3cfg from S3?
Also, let me also know if there is a better way to connect to S3 storage during init.
Thanks!
If it’s something live java libraries, that I imagine you can make them public on your S3 bucket why not use http requests and
curlorwget?EDIT:
Personally I’d use S3 python libraries (choose another language if you don’t like python) and write a custom script that includes my access key (if you’d be distributing your code you need to make sure how you handle the security keys) and fetches the files that I need.
I use this: http://aws.amazon.com/code/134