Skip to content

S3 Module

Source: tofu/modules/s3

Creates an S3 bucket with KMS encryption, versioning, access logging, and lifecycle rules.

Inputs

Variable Type Description
bucket_name string S3 bucket name
kms_key_arn string KMS key for encryption
logging_bucket string Logging target bucket ID
noncurrent_version_expiration_days number Days before noncurrent versions expire
tags map(string) Resource tags

Outputs

Output Description
bucket_id Bucket ID
bucket_arn Bucket ARN