📅  最后修改于: 2022-03-11 14:50:35.905000             🧑  作者: Mango
variable "bucket_name" {
default = "website.example.com" // change this
}
provider "aws" {
region = "us-east-1"
}
resource "aws_s3_bucket" "bucket" {
bucket = "${var.bucket_name}"
acl = "private"
policy = <