Skip to content

Instantly share code, notes, and snippets.

@jschr
Last active April 12, 2017 04:25
Show Gist options
  • Save jschr/42e6eef22b932bfc3f26f8c409a06477 to your computer and use it in GitHub Desktop.
Save jschr/42e6eef22b932bfc3f26f8c409a06477 to your computer and use it in GitHub Desktop.
terraform s3
# the s3 bucket
resource "aws_s3_bucket" "website" {
bucket = "${var.domain}"
# set to public if you're not using a CDN
acl = "private"
policy = "${data.aws_iam_policy_document.website_bucket_policy.json}"
website {
index_document = "index.html"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment