Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aws s3 mb s3://test-website
- aws s3 website s3://test-website --index-document index.html --error-document error.html
- 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
- aws s3api put-bucket-policy --bucket test-website --policy file://policy.json
- aws s3 sync website-source-folder s3://test-website
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement