bsmsapp/terraform/modules/s3/README.md

3.9 KiB

Requirements

Name Version
terraform >= 1.3.1
aws >= 4.10.0

Providers

Name Version
aws 4.38.0

Modules

No modules.

Resources

Name Type
aws_cloudfront_origin_access_identity.this resource
aws_s3_bucket.this resource
aws_s3_bucket_acl.this resource
aws_s3_bucket_logging.this resource
aws_s3_bucket_policy.this resource
aws_s3_bucket_public_access_block.this resource
aws_s3_bucket_website_configuration.this resource
aws_s3_object.index resource
aws_s3_object.this resource
aws_iam_policy_document.this data source

Inputs

Name Description Type Default Required
block_public_access Determines the S3 account-level Public Access Block configuration. bool true no
bucket_acl The canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, and log-delivery-write. Defaults to private. string "private" no
bucket_name The name of the bucket. Must be less than or equal to 63 characters in length. string n/a yes
content Website bucket content. string n/a yes
objects Map of objects to upload to the bucket. map(any) {} no
type Determines the type of the bucket. 1 for static website and 2 for logs. number 1 no
website Map that defines the configuration of the website. map(any) {} no
website_id Website bucket ID. string n/a yes

Outputs

Name Description
arn The ARN of the bucket. Will be of format arn:aws:s3:::bucketname.
cloudfront_access_identity The cloudfront OAI access identity path.
domain_name The bucket region-specific domain name.
id The bucket domain name. Will be of format bucketname.s3.amazonaws.com.
website_endpoint The website endpoint, if the bucket is configured with a website. If not, this will be an empty string.