Skip to content

Smartbrood/terraform-aws-s3-bucket

Repository files navigation

terraform-aws-s3-bucket

Terraform module to create S3 bucket on AWS

Providers

Name Version
aws 5.34.0

Resources

Name Type
aws_s3_bucket.this resource
aws_s3_bucket_ownership_controls.this resource
aws_s3_bucket_server_side_encryption_configuration.this resource
aws_s3_bucket_versioning.this resource

Inputs

Name Description Type Default Required
bucket Name of the bucket. string n/a yes
force_destroy Boolean that indicates all objects should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. bool false no
object_ownership Versioning state of the bucket. string "BucketOwnerEnforced" no
tags Map of tags to assign to the bucket. map(any) {} no
versioning_status Versioning state of the bucket. string "Disabled" no

Outputs

Name Description
arn ARN of the bucket.
bucket_domain_name Bucket domain name.
bucket_regional_domain_name The bucket region-specific domain name.
hosted_zone_id Route 53 Hosted Zone ID for this bucket's region.
id Name of the bucket.
region AWS region this bucket resides in.