Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create public website on S3
- ## CLI commands
- aws s3api create-bucket --bucket <bucket> --acl public-read --create-bucket-configuration LocationConstraint=<region> --region <region>
- aws s3 cp index.html s3://<bucket> --acl public-read
- aws s3api put-bucket-website --bucket <bucket> --website-configuration file://config.json
- ## Endpoint
- http://<bucket>.s3-website.<region>.amazonaws.com/
- ## config.json
- ``` json
- {
- "IndexDocument": {
- "Suffix": "index.html"
- },
- "ErrorDocument": {
- "Key": "error.html"
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement