aws_s3_bucketの中でwebsiteなどを設定するのはdeprecatedなので
website { index_document = "index.html" }
IntelliJでGitHub Copilotを使うと、index_documentブロックをサジェストしてくれなくて困る
resource "aws_s3_bucket_website_configuration" "example" { bucket = aws_s3_bucket.example.id index_document { suffix = "index.html" } }