s3-website

cloudposse/s3-website/aws

Terraform Module HCL AWS

Terraform Module for Creating S3 backed Websites and Route53 DNS

Install
module "s3-website" {
source = "cloudposse/s3-website/aws"
version = "0.18.0"
}
plain text: /constructs/tfmod-cloudposse-s3-website-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

~~terraform-aws-s3-website~~ OBSOLETE ![Latest Release](https://github.com/cloudposse/terraform-aws-s3-website/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Deprecated As of July, 2023 this module is deprecated. terraform-aws-s3-website offers little value beyond the terraform-aws-s3-bucket module, so Cloud Posse is phasing out support for this project. Users are advised to migrate to terraform-aws-s3-bucket to manage the S3 bucket (including logging) and terraform-aws-route53-alias to register the website hostname in Route53. Feature requests should be directed to those modules. Terraform module to provision S3-backed Websites. IMPORTANT: This module provisions a

Inputs (45)
NameTypeDescriptionDefault
hostnamestringName of website bucket in `fqdn` format (e.g. `test.example.com`). IMPORTANT! Do required
cors_allowed_headerslist(string)List of allowed headers[ "*" ]
force_destroyboolDelete all objects from the bucket so that the bucket can be destroyed without efalse
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
parent_zone_idstringID of the hosted zone to contain the record""
routing_rulesstringA json array containing routing rules describing redirect behavior and when redi""
cors_allowed_originslist(string)List of allowed origins (e.g. example.com, test.com)[ "*" ]
cors_max_age_secondsnumberTime in seconds that browser can cache the response3600
lifecycle_rule_enabledboolEnable or disable lifecycle rulefalse
noncurrent_version_expiration_daysnumberSpecifies when noncurrent object versions expire90
versioning_enabledboolEnable or disable versioningtrue
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
redirect_all_requests_tostringA hostname to redirect all website requests for this bucket to. If this is set `""
replication_source_principal_arnslist(string)(Optional) List of principal ARNs to grant replication access from different AWS[]
allow_ssl_requests_onlyboolSet to `true` to require requests to use Secure Socket Layer (HTTPS/SSL). This wfalse
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
index_documentstringAmazon S3 returns this index document when requests are made to the root domain "index.html"
cors_allowed_methodslist(string)List of allowed methods (e.g. GET, PUT, POST, DELETE, HEAD) [ "GET" ]
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
… and 5 more inputs
Outputs (7)
hostname — Bucket hostname
s3_bucket_name — DNS record of the website bucket
s3_bucket_domain_name — Name of the website bucket
s3_bucket_arn — ARN identifier of the website bucket
s3_bucket_website_endpoint — The website endpoint URL
s3_bucket_website_domain — The domain of the website endpoint
s3_bucket_hosted_zone_id — The Route 53 Hosted Zone ID for this bucket's region
Resources (4)
aws_s3_bucketaws_s3_bucket_ownership_controlsaws_s3_bucket_policyaws_s3_bucket_public_access_block
Details
FrameworkTerraform Module
LanguageHCL
Version0.18.0
Cloud AWS
★ Stars116
Forks70
Total downloads141.6k
Inputs45
Outputs7
Resources4
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated