Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

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 >= 4.3

Providers

Name Version
aws >= 4.3

Inputs

Name Description Type Required
bucket_name The name of the S3 bucket to create. string yes
log_bucket_name The name of the S3 bucket to store access logs to the main bucket. string yes
bucket_key_enabled Whether or not to use Amazon S3 Bucket Keys for this bucket. bool 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 no
lifecycle_glacier_transition_days The number of days after object creation when the object is archived into Glacier. Setting to zero disables the transition. number no
tags Specifies object tags key and value. This applies to all resources created by this module. map(string) no

Outputs

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