Last active
April 12, 2017 04:25
-
-
Save jschr/42e6eef22b932bfc3f26f8c409a06477 to your computer and use it in GitHub Desktop.
terraform s3
This file contains hidden or 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
# 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