Skip navigation

Category Archives: Amazon AWS

Add/Modify .ssh/config and add this entry:


Host ec2
Hostname ec2-x-x-x-x.compute-x.amazonaws.com
User ubuntu
IdentityFile /your/path/to/id/file

Then you can simply log into your machine by typing:


ssh ec2

instead of giving the complete path to your machine and identity file each time.

Amazon’s S3 sample doesn’t show how to upload a file and make it public at the same time. Set the ACL as shown.


PutObjectRequest por = new PutObjectRequest(bucketName, key, file);
por.setCannedAcl(CannedAccessControlList.PublicRead);
s3.putObject(por);

Follow

Get every new post delivered to your Inbox.