OPEN

Terraform

brew tap hashicorp/tap
brew install hashicorp/tap/terraform
  • modules
    • s3
      • main.tf
      • variables.tf
      • outputs.tf
$ cat modules/s3/main.tf

resource "aws_s3_bucket" "www" {
  bucket = "www.${var.domain_name}"
  acl = "public-read"
  policy = <<POLICY
  {
    "Version": "2012-10-17,
    "Statement": [
    ...
    ]
  }
  POLICY
  ...
}