Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 3.73 KB

File metadata and controls

55 lines (44 loc) · 3.73 KB

Requirements

Name Version
terraform >= 1.0
aws >= 5.0.0

Providers

Name Version
aws >= 5.0.0

Modules

No modules.

Resources

Name Type
aws_s3_bucket.bucket resource
aws_s3_bucket_lifecycle_configuration.lifecycle resource
aws_s3_bucket_logging.bucket_logging resource
aws_s3_bucket_ownership_controls.ownership resource
aws_s3_bucket_public_access_block.public_access resource
aws_s3_bucket_server_side_encryption_configuration.sse resource
aws_s3_bucket_versioning.versioning resource

Inputs

Name Description Type Default Required
acl Canned ACL to apply to the bucket string "private" no
bucket_name The name of the S3 bucket string n/a yes
enable_lifecycle_rule Enable lifecycle rule bool true no
enable_versioning Enable versioning on the S3 bucket bool false no
force_destroy Force bucket deletion bool false no
kms_key_id KMS key for bucket encryption string "alias/aws/s3" no
lifecycle_expiration_days Number of days after which to expire objects number 90 no
lifecycle_storage_class Storage class for lifecycle transition string "GLACIER" no
lifecycle_transition_days Number of days after which to transition objects number 30 no
logging_bucket Bucket for storing logs string n/a yes
name Name to be used on all the resources as identifier string "" no
tags Any extra tags to assign to objects map(any) {} no

Outputs

Name Description
bucket_arn The ARN of the S3 bucket
bucket_id The ID of the S3 bucket
logging_bucket The logging bucket for the S3 bucket