by shigemk2

当面は技術的なことしか書かない

aws_s3_bucket_website_configuration

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"
  }
}

registry.terraform.io