Terraform

  • Uses HCL or JSON syntax to define infrastructure as "resources"
  • HCL is more human readable (but is a new thing to learn)
resource "aws_s3_bucket" "storage-bucket" {
    bucket = "xsrt-storage-\${var.env}"
    server_side_encryption_configuration {
        rule {
            apply_server_side_encryption_by_default {
                sse_algorithm = "AES256"
            }
        }
    }
}

12 / 18