Created
December 15, 2011 01:40
-
-
Save matthewhudson/1479432 to your computer and use it in GitHub Desktop.
S3 Website Bucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Upload website to your Amazon S3 bucket. | |
# Requires s3cmd | |
cd ~/your-website-code | |
find * -type f -exec s3cmd -v put ${PWD}/{} s3://your.bucket.name/{} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version":"2008-10-17", | |
"Statement":[{ | |
"Sid":"PublicReadGetObject", | |
"Effect":"Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action":["s3:GetObject"], | |
"Resource":["arn:aws:s3:::your.bucket.name/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment