You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/cloudfront"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
16
+
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/cloudfront"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
17
17
18
18
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/releases/tag/v0.20.1"className="link-button"title="Release notes for only versions which impacted this module.">Release Notes</a>
19
19
20
20
This module deploys an [AWS CloudFront](https://aws.amazon.com/cloudfront/) distribution to serve content from S3 or custom origins. CloudFront is a Content Delivery Network (CDN) that caches your content at edge locations around the world to reduce latency and improve performance for your users.
21
21
22
22
## Quick Start
23
23
24
-
* See the [cloudfront-custom-origin](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/examples/cloudfront-custom-origin) example for working sample code.
25
-
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/cloudfront/vars.tf) for all parameters you can set for this module.
24
+
* See the [cloudfront-custom-origin](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/examples/cloudfront-custom-origin) example for working sample code.
25
+
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/cloudfront/vars.tf) for all parameters you can set for this module.
26
26
27
27
## Sample Usage
28
28
@@ -37,7 +37,7 @@ This module deploys an [AWS CloudFront](https://aws.amazon.com/cloudfront/) dist
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-cloudfront"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
16
+
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-cloudfront"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
17
17
18
18
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/releases/tag/v0.18.5"className="link-button"title="Release notes for only versions which impacted this module.">Release Notes</a>
19
19
20
20
This module deploys a [CloudFront](https://aws.amazon.com/cloudfront/) distribution as a Content Distribution Network
21
21
(CDN) in front of an [S3 bucket](https://aws.amazon.com/s3/). This reduces latency for your users, by caching your
22
22
static content in servers around the world. It also allows you to use SSL with the static content in an S3 bucket.
23
23
24
-
See the [s3-static-website module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website) for how to deploy static content in an S3 bucket.
24
+
See the [s3-static-website module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website) for how to deploy static content in an S3 bucket.
25
25
26
26
## Quick Start
27
27
28
-
* See the [cloudfront-s3-public](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/examples/cloudfront-s3-public) and
29
-
[cloudfront-s3-private](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/examples/cloudfront-s3-private) examples for working sample code.
30
-
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-cloudfront/vars.tf) for all parameters you can set for this module.
28
+
* See the [cloudfront-s3-public](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/examples/cloudfront-s3-public) and
29
+
[cloudfront-s3-private](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/examples/cloudfront-s3-private) examples for working sample code.
30
+
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-cloudfront/vars.tf) for all parameters you can set for this module.
31
31
32
32
## Public vs private S3 buckets
33
33
@@ -130,7 +130,7 @@ most use cases, but is not particularly flexible. In particular, the limitations
is an inline block). You can control the default cache settings using a number of parameters, including
133
-
`cached_methods`, `default_ttl`, `min_ttl`, `max_ttl`, and many others (see [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-cloudfront/vars.tf) for the full list).
133
+
`cached_methods`, `default_ttl`, `min_ttl`, `max_ttl`, and many others (see [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-cloudfront/vars.tf) for the full list).
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
16
+
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website"className="link-button"title="View the source code for this module in GitHub.">View Source</a>
17
17
18
-
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/releases/tag/v0.20.1"className="link-button"title="Release notes for only versions which impacted this module.">Release Notes</a>
18
+
<ahref="https://github.com/gruntwork-io/terraform-aws-static-assets/releases/tag/v0.20.2"className="link-button"title="Release notes for only versions which impacted this module.">Release Notes</a>
19
19
20
20
This module creates an AWS S3 bucket that can be used to host a static website. That is, the website can contain static HTML, CSS, JS, and images.
21
21
@@ -29,39 +29,39 @@ This module creates an AWS S3 bucket that can be used to host a static website.
29
29
30
30
* Optionally configure a custom domain name for the website.
31
31
32
-
* Optionally deploy a CDN in front of S3 using the [s3-cloudfront module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-cloudfront).
32
+
* Optionally deploy a CDN in front of S3 using the [s3-cloudfront module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-cloudfront).
33
33
34
34
## Learn
35
35
36
36
The reason to serve static content from S3 rather than from your own app server is that it can significantly reduce the load on your server, allowing it to solely focus on serving dynamic data. This will save you money and make your website run faster. For even bigger improvements in performance, consider deploying a CloudFront Content Distribution Network (CDN) in front of the S3 bucket using the s3-cloudfront module.
*[How to test the website](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website/core-concepts.md#how-to-test-the-website)
42
+
*[How to test the website](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website/core-concepts.md#how-to-test-the-website)
43
43
44
-
*[How to configure HTTPS (SSL) or a CDN?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website/core-concepts.md#how-to-configure-http)
44
+
*[How to configure HTTPS (SSL) or a CDN?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website/core-concepts.md#how-to-configure-http)
45
45
46
-
*[How to handle www + root domains](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website/core-concepts.md#how-to-handle)
46
+
*[How to handle www + root domains](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website/core-concepts.md#how-to-handle)
47
47
48
-
*[How do I configure Cross Origin Resource Sharing (CORS)?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules/s3-static-website/core-concepts.md#how-do-i-configure-cross-origin-resource-sharing-cors)
48
+
*[How do I configure Cross Origin Resource Sharing (CORS)?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules/s3-static-website/core-concepts.md#how-do-i-configure-cross-origin-resource-sharing-cors)
49
49
50
50
### Repo organization
51
51
52
-
*[modules](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/modules): The main implementation code for this repo, broken down into multiple standalone, orthogonal submodules.
52
+
*[modules](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/modules): The main implementation code for this repo, broken down into multiple standalone, orthogonal submodules.
53
53
54
-
*[examples](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/examples): This folder contains working examples of how to use the submodules.
54
+
*[examples](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/examples): This folder contains working examples of how to use the submodules.
55
55
56
-
*[test](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/test): Automated tests for the modules and examples.
56
+
*[test](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/test): Automated tests for the modules and examples.
57
57
58
58
## Deploy
59
59
60
60
### Non-production deployment (quick start for learning)
61
61
62
62
If you just want to try this repo out for experimenting and learning, check out the following resources:
63
63
64
-
*[Examples folder](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.1/examples): The `examples` folder contains sample code optimized for learning, experimenting, and testing (but not production usage).
64
+
*[Examples folder](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.20.2/examples): The `examples` folder contains sample code optimized for learning, experimenting, and testing (but not production usage).
65
65
66
66
### Production deployment
67
67
@@ -82,7 +82,7 @@ If you want to deploy this repo in production, check out the following resources
0 commit comments