S3の作り方
やり得
code:block.tf
"aws_s3_bucket_public_access_block" "private" {
bucket = aws_s3_bucket.private.id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}
デフォルトで"private"
"public-read"などに設定する
code:cors.tf
cors_rule {
max_age_seconds = 3000
}