Skip to content

Instantly share code, notes, and snippets.

View rhossi's full-sized avatar

Felipe Garcia rhossi

View GitHub Profile
@rhossi
rhossi / gist:615abafc602028ecbe01
Created June 29, 2014 23:55
Allow an IAM user access to one of your buckets
{
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:ListAllMyBuckets"
],
"Resource":"arn:aws:s3:::*"
},
{
HTTPD_CONFD = "/etc/httpd/conf.d/"
HTTPD_WWW = "/var/www/"
def create_vhost(site)
vhost = <<-eos
<VirtualHost *:80>
\tDocumentRoot /var/www/#{site}
\tServerName #{site}
</VirtualHost>
eos