Posts

Showing posts from May, 2016

Add Policy on AWs s3 bucket

1. Go to the Bucket properties. 2. Then click on to the Permissions tab. 3. Then click on Edit bucket Policy. 4. Then copy and paste below code into area. {     "Version": "2012-10-17",     "Statement": [         {             "Sid": "AddPerm",             "Effect": "Allow",             "Principal": "*",             "Action": "s3:GetObject",             "Resource": "arn:aws:s3::: cdn.example.com/* "         }     ] }

Configured s3 cmd and upload directory on to S3 bucket

Import S3tools signing key:   wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -  A dd the repo to sources.list:   sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list R efresh package cache and install the newest s3cmd:  sudo apt-get update && sudo apt-get install s3cmd   s3cmd --configure New settings: 2 Access Key: [your access key] 3 Secret Key: [your securet key] 4 Encryption password: somepassword 5 Path to GPG program: /usr/bin/gpg 6 Use HTTPS protocol: False 7 HTTP Proxy server name: 8 HTTP Proxy server port: 0 9 Test access with supplied credentials? [Y/n] Y 10 Please wait... 11 Success. Your access key and secret key worked fine :-) 12 13 Now verifying that encryption works... 14 Success. Encryption and decryption worked fine :-) 15 Save settings? [y/N] y   s3cmd sync s3://acc1_bucket/folder/ s3://acc2_bucket/folder --recursive