Skip to content

Latest commit

 

History

History
 
 

secure-bucket

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

secure-bucket

Creates a S3 bucket with access logging enabled.

Requirements

Name Version
terraform >= 0.13
aws >= 3.50.0

Providers

Name Version
aws 3.60.0

Modules

No modules.

Resources

Name Type
aws_s3_bucket.access_log resource
aws_s3_bucket.content resource
aws_s3_bucket_policy.access_log_policy resource
aws_s3_bucket_public_access_block.access_log resource
aws_s3_bucket_public_access_block.content resource
aws_iam_policy_document.access_log_policy data source

Inputs

Name Description Type Default Required
bucket_name n/a any n/a yes
enabled A boolean that indicates this module is enabled. Resources are not created if it is set to false. bool true no
force_destroy A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. bool false no
lifecycle_glacier_transition_days The number of days after object creation when the object is archived into Glacier. number 90 no
log_bucket_name n/a any n/a yes
tags Specifies object tags key and value. This applies to all resources created by this module. map
{
"Terraform": true
}
no

Outputs

Name Description
log_bucket The S3 bucket used for storing access logs of this bucket.
this_bucket This S3 bucket.