Creates a S3 bucket with access logging enabled.
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >= 4.3 |
Name | Version |
---|---|
aws | >= 4.3 |
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 |
Name | Description |
---|---|
log_bucket | The S3 bucket used for storing access logs of this bucket. |
this_bucket | This S3 bucket. |