by shigemk2

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

2023-10-25から1日間の記事一覧

s3_bucket_public_access_block

特に書くことはなく、以下4つをtrue falseするだけ resource "aws_s3_bucket" "example" { bucket = "example" } resource "aws_s3_bucket_public_access_block" "example" { bucket = aws_s3_bucket.example.id block_public_acls = true block_public_poli…

TerraformでS3バケットのindex_documentを設定する方法

index_documentはsuffixを使う。aws_s3_bucketの中のindex_document(depcreated)だとsuffixが必要なかった。 resource "aws_s3_bucket_website_configuration" "example" { bucket = aws_s3_bucket.example.id index_document { suffix = "index.html" } } h…