Terraform
install
brew tap hashicorp/tap brew install hashicorp/tap/terraform
S3 버킷 프로비저닝
- 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 ... }