목차

Terraform

install

brew tap hashicorp/tap
brew install hashicorp/tap/terraform

S3 버킷 프로비저닝

$ 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
  ...
}

참고


관련 문서