Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.markdownlintrc
.pre-commit-config.yaml
LICENSE
README.md
main.tf
outputs.tf
vars.tf

README.md

Creates a static website hosted on S3 and served from CloudFront.

Creates the following resources:

  • ACM Certificate
  • S3 Bucket
  • CloudFront Distribution
  • Route53 Records

Usage

module "website" {
  source = "spatialcurrent/website/aws"

  origin_id            = "${var.origin_id}"
}

Inputs

Name Description Type Default Required
acm_tags map {} no
cloudfront_404_response_code string "404" no
cloudfront_404_response_path string "" no
cloudfront_comment string n/a yes
cloudfront_forwarded_query_strings string "false" no
cloudfront_logs_bucket_domain_name string n/a yes
cloudfront_logs_prefix string "" no
cloudfront_origin_read_timeout string "5" no
cloudfront_origin_ssl_protocols list [ "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2" ] no
cloudfront_tags map {} no
error_document string "" no
fqdn string n/a yes
index_document string "" no
origin_id string n/a yes
price_class string "PriceClass_100" no
route53_zone_id string n/a yes
routing_rules string "" no
s3_bucket_name string n/a yes
s3_cors list [] no
s3_cors_allowed_headers list [] no
s3_cors_allowed_methods list [] no
s3_cors_allowed_origins list [] no
s3_logs_bucket_id string n/a yes
s3_logs_prefix string "logs/s3" no
s3_tags map {} no

Outputs

Name Description
domain_name
hosted_zone_id
s3_bucket_arn
You can’t perform that action at this time.