Saturday, July 26, 2014

mount Amazon S3 bucket to local system Or VPC EC2-instances

mount Amazon S3 bucket to local system Or VPC EC2-instances 

 sudo sh -C 'echo AMAZON_KEY:AMAZON_SECRET > /etc/passwd-s3fs'  sudo chmod 600 /etc/passwd-s3fs  sudo mkdir -p /mnt/s3/  sudo chmod -R 0777 /mnt/s3/  

Then run
 id

Output will be like this: 
uid=1001(deploy) gid=0(root) groups=0(root) 

Then run

sudo s3fs bucket_name /mnt/s3/ -o noatime -o allow_other -o uid=uid_from_above -o 
gid=gid_from_above -o use_cache=/tmp -o default_acl=public-read-write 

And if you get stuck… Ask Here

Labels: , , ,

Friday, July 11, 2014

Elastic Load Balancer Remove Pass-phrase ssl key

ELB doesn’t support pass phrase protected keys so You need to remove the pass phrase .

To do that have that key and run following command

openssl rsa -in wild_mydomain_com.key -out wild_mydomain_com.nopass.key

Enter the private key pass phrase when asked.

And Get set Go! Use this new key to your Elastic Load Ba-lancer – nginx – Apache.

And if you get stuck… Ask Here

Labels: , ,