Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. aws s3 mb s3://test-website
  2. aws s3 website s3://test-website --index-document index.html --error-document error.html
  3. echo '{"Version":"2012-10-17", "Statement": [{ "Sid": "Allow Public Access to All Objects", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::test-website/*"}]}' > policy.json
  4. aws s3api put-bucket-policy --bucket test-website --policy file://policy.json
  5. aws s3 sync website-source-folder s3://test-website
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement