Skip to content

Commit ec7a48f

Browse files
committed
Updated README
1 parent b4a238d commit ec7a48f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AWS Static Website Terraform Module
22

3-
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.12.0-blue.svg)
3+
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.12.0-blue.svg) [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
44

55
Terraform module which provision required AWS resources to host a performant and secured static website.
66

@@ -15,8 +15,7 @@ This Terraform module creates the following AWS resources:
1515
* Bucket #3: to redirect a different subdomain to the main domain (e.g., `www.example.com` redirected to `example.com`).
1616
* **CloudFront**
1717
* Distribution #1: to frontend the website.
18-
* Distribution #2: to frontend the subdomain that will be redirect to the main domain.
19-
* **Lambda@Edge** (triggered by the CloudFront Distribution) to re-write requests so that CloudFront requests a default index object (e.g., index.html) for subfolders.
18+
* Distribution #2: to frontend the subdomain that will be redirected to the main domain.
2019
* **Route53** record sets pointing to the two CloudFront distributions.
2120

2221
## Requirements
@@ -44,10 +43,9 @@ module "aws_static_website" {
4443

4544
Although AWS services are available in many locations, some of them require the `us-east-1` (N. Virginia) region to be configured:
4645

47-
* To use an ACM certificate with Amazon CloudFront, you must request or import the certificate in the US East (N. Virginia) region. ACM certificates in this region that are associated with a CloudFront distribution are distributed to all the geographic locations configured for that distribution.
48-
* Lambda@Edge functions can now be authored in US East (N. Virginia), and will be replicated globally for invocation in response to CloudFront events.
46+
* To use an ACM certificate with Amazon CloudFront, you must request or import the certificate in the US East (N. Virginia) region. ACM certificates in this region associated with a CloudFront distribution are distributed to all the geographic locations configured for that distribution.
4947

50-
For those reasons, the module includes an aliased provider definition to create those resources in the `us-east-1` region. Remaining resources from the module will inherit default (un-aliased) provider configurations from the parent.
48+
For that reason, the module includes an aliased provider definition to create supplemental resources in the `us-east-1` region when required. Remaining resources from the module will inherit default (un-aliased) provider configurations from the parent.
5149

5250
## Inputs
5351

@@ -61,3 +59,12 @@ For those reasons, the module includes an aliased provider definition to create
6159
| Name | Description |
6260
|------|-------------|
6361
| website_cdn_root_id | CloudFront Distribution ID |
62+
63+
## Additional Resources
64+
65+
* Blog post describing the thought process behind this: [My Wordpress to Hugo Migration #2 - Hosting](https://cloudmaniac.net/wordpress-to-hugo-migration-2-hosting/)
66+
67+
## Todo
68+
69+
* Tag all ressources
70+
* Optional enhanced version with Lambda@Edge configuration and S3 endpoint (REST endpoint) used as the origin

0 commit comments

Comments
 (0)