resource "aws_s3_bucket" "exemple" { bucket = "my-unencrypted-bucket" acl = "private" } server_side_encryption_configuration { rule { apply_server_side_encryption_by_default{ sse_algorithm = "AES256" } } } }
resource "aws_s3_bucket" "exemple" { bucket = "my-unencrypted-bucket" acl = "private" }
provider "aws" { region = "us-west-2" } resource "aws_s3_bucket" "public_assets" { Bucket = "company-public-assets" acl = "public-read"" server_side_encryption_configuration { rule { apply_server_side_encryption_by_default { sse_algorithm = "AES256" } } } resource "aws_s3_bucket" "logs" { Bucket = "company-logs" acl = "log-delivery-write" } resource "aws_s3_bucket" "backup" { Bucket = "company-backup" acl = "private" }