This was adapted from the terraform-aws-modules
The License file for this module can be found in this directory.
Name |
Version |
aws |
>= 4.9.0 |
No modules.
Name |
Description |
Type |
Default |
Required |
attach_elb_log_delivery_policy |
(Optional: default=false) Controls if S3 bucket should have ELB log delivery policy attached |
bool |
false |
no |
attach_lb_log_delivery_policy |
(Optional: default=false) Controls if S3 bucket should have ALB/NLB log delivery policy attached |
bool |
false |
no |
billing_tag_key |
(Optional) The name of the billing tag |
string |
"CostCentre" |
no |
billing_tag_value |
(required) The value of the billing tag |
string |
n/a |
yes |
bucket_name |
(Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name. |
string |
null |
no |
bucket_prefix |
(Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket. |
string |
null |
no |
critical_tag_key |
(Optional) The name of the critical tag. |
string |
"Critical" |
no |
critical_tag_value |
(Required: default=true) The value of the critical tag. If set to true, protection SCP rules will be applied to the resource. |
bool |
true |
no |
force_destroy |
(Optional, Default:false ) 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_rule |
(Optional) List of maps containing configuration of object lifecycle management. |
any |
[] |
no |
object_ownership |
(Optional), overrides object ownership value in aws_s3_bucket_ownership_controls. Defaults to BucketOwnerPreferred |
string |
"BucketOwnerPreferred" |
no |
tags |
(Optional) A mapping of tags to assign to the bucket. |
map(string) |
{} |
no |
versioning_status |
(Optional) The versioning status of the bucket. Valid values are 'Enabled', 'Disabled' or 'Suspended'. |
string |
"Disabled" |
no |
Name |
Description |
s3_bucket_arn |
The ARN of the bucket. Will be of format arn:aws:s3:::bucketname. |
s3_bucket_domain_name |
The bucket domain name. Will be of format bucketname.s3.amazonaws.com. |
s3_bucket_id |
The name of the bucket. |
s3_bucket_region |
The AWS region this bucket resides in. |
s3_bucket_regional_domain_name |
The bucket region-specific domain name. The bucket domain name including the region name, please refer here for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent redirect issues from CloudFront to S3 Origin URL. |