static-site
biddellns/static-site/aws
A terraform for generating secure static sites with AWS.
Terraform AWS Static Site A terraform module for generating secure static site infrastructure in AWS with S3, Cloudfront, and Lambda. Design decisions detailed here: https://nicbiddell.com/blog/cloudfront-private-s3-and-gatsby/ Benefits - Served by Cloudfront CDN - Seals off public access to your underlying S3 bucket - Adds index.html as an index object. Solves the weird problem that Gatsby and other static site generators have with cloudfront! Providers | Name | Version | |------|---------| | archive | 2.0 | | aws | \>= 3.10, \< 4.0| Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | bucket\_name | Name of S3 bucket for static assets | string | n/a | yes | | cert\_arn | ARN of ACM cert for cloudfront. If not provided, default Clo
| Name | Type | Description | Default |
|---|---|---|---|
| ci_username | string | Username for CI user for syncing s3 files | required |
| bucket_name | string | Name of S3 bucket for static assets | required |
| provisioner | string | Who/what provisioned a resource | "Terraform" |
| cert_arn | string | ARN of ACM cert for cloudfront. If not provided, default Cloudfront cert will be | "" |
| cloudfront_cname_aliases | list(string) | List of alternate CNAMEs for cdn | [] |
| default_cache_time | number | Default (and currently max) TTL in seconds | 86400 |
| enabled | bool | Whether or not the resources for this module should be created | false |
cdn_arn — Arn of Cloudfront Distribution serving the static site.cdn_domain_name — URL of Cloudfront Distribution serving the static site.s3_bucket_arn — ARN of S3 bucket holding the site html/css/js and other assets.index_html_rewriter_lambda — ARN of Lambda ensuring urls end in /index.html if no filename is in requestci_user — ARN of user with IAM permissions to sync files with s3_bucketTerraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)
Terraform module that provision an S3 bucket to store the terraform.tfstate file