You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether to disable bucket versioning (should only be used when creating or importing resources that correspond to unversioned S3 buckets)
bool
true
no
enable_mfa_delete
Enable MFA delete for S3 bucket
bool
false
no
force_destroy
Empty bucket contents before deleting S3 bucket
bool
true
no
ignore_public_acls
Whether to ignore existing public ACLs for the bucket
bool
true
no
kms_key
Alias/ARN/ID of KMS key for S3 SSE encryption
string
"alias/aws/s3"
no
mfa
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. Note: Required only if enable_mfa_delete is set to true
string
null
no
name
Name of the S3 bucket
string
n/a
yes
object_lock_enabled
Whether to enable object lock configuration for the bucket. Note: This argument is not supported for all regions or partitions
bool
false
no
object_ownership
Specify object ownership method. Possible values: BucketOwnerPreferred, ObjectWriter or BucketOwnerEnforced
string
"BucketOwnerEnforced"
no
restrict_public_buckets
Whether to ignore existing public bucket policy and make the bucket accessible only for owner
bool
true
no
suspend_versioning
Whether to suspend the bucket versioning
bool
false
no
tags
Key Value pair to assign to the S3 bucket
map(any)
{}
no
Outputs
Name
Description
arn
ARN of the S3 bucket
hosted_zone_id
Route53 hosted zone id for the S3 bucket
name
Name of the S3 bucket
region
Region the S3 bucket is hosted in
regional_domain_name
Region specific domain name of the bucket
About
Terraform module to create an S3 bucket with base security features enabled