Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to automate transfer of tomcat log files from micro instance to S3 account. However, all the scripts I find online use key pair in order to do this. I cant upload these key pair to the server for security reasons. Is it possible to create a shell script that automates moving of these log files into s3 without requiring to access .pem files ?

share|improve this question
You would prefer global write access to your bucket, instead of storing a limited-permission keypair on your EC2 instance? – womble Aug 12 '12 at 4:43

Have you tried ?

This will allow you to seamlessly copy files to your S3 bucket. You can use the rsync like sync option as well.

share|improve this answer
Note that you will need to keep your S3 credentials on the EC2 box. You will need to keep them somewhere on the box to effect the transfer, after all. – cjc Aug 11 '12 at 14:29
If a separate IAM user is created for S3 access alone, fine-grained access control is possible -- Even though a key is used, IAM policies allows security to revoke it if compromised and provides limited access to specific bucket. – Chida Aug 11 '12 at 14:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.