Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
1  
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

1 Answer 1

Have you tried http://s3tools.org/s3cmd ?

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
3  
If a separate IAM user is created for S3 access alone, fine-grained access control is possible -- andrewhitchcock.org/?post=325 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

 
discard

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.