Skip to content

Instantly share code, notes, and snippets.

@dblencowe
Last active March 13, 2020 08:39
Show Gist options
  • Save dblencowe/39fd6b2a39372441b26eb8e2d244b3e9 to your computer and use it in GitHub Desktop.
Save dblencowe/39fd6b2a39372441b26eb8e2d244b3e9 to your computer and use it in GitHub Desktop.
# .deploy/terraform/static-site/s3.tf
resource "aws_s3_bucket" "website_bucket" {
bucket = var.domain_name
acl = "public-read"
policy = data.aws_iam_policy_document.website_policy.json
website {
index_document = "index.html"
error_document = "index.html"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment