Skip to content

Instantly share code, notes, and snippets.

@matthewhudson
Created December 15, 2011 01:40
Show Gist options
  • Save matthewhudson/1479432 to your computer and use it in GitHub Desktop.
Save matthewhudson/1479432 to your computer and use it in GitHub Desktop.
S3 Website Bucket
#!/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/{} \;
{
"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