您需要向aclaws_s3_bucket 添加一个属性,其值为“ log-delivery-write”。
acl
resource "aws_s3_bucket" "app" { bucket = "${local.name_env}" acl = "log-delivery-write" ... }