-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated with the [latest changes](https://github.com/gruntwork-io/ter…
…raform-aws-static-assets/releases/tag/v0.19.1) from the `[email protected]` source branch. (#2279) Co-authored-by: docs-sourcer[bot] <99042413+docs-sourcer[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ddd4b0a
commit 9570e99
Showing
3 changed files
with
41 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,20 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; | |
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; | ||
import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; | ||
|
||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.0" lastModifiedVersion="0.19.0"/> | ||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.1" lastModifiedVersion="0.19.0"/> | ||
|
||
# CloudFront Module | ||
|
||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/cloudfront" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/cloudfront" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
|
||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/releases/tag/v0.19.0" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a> | ||
|
||
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. | ||
|
||
## Quick Start | ||
|
||
* See the [cloudfront-custom-origin](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/examples/cloudfront-custom-origin) example for working sample code. | ||
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/cloudfront/vars.tf) for all parameters you can set for this module. | ||
* See the [cloudfront-custom-origin](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/examples/cloudfront-custom-origin) example for working sample code. | ||
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/cloudfront/vars.tf) for all parameters you can set for this module. | ||
|
||
## Sample Usage | ||
|
||
|
@@ -37,7 +37,7 @@ This module deploys an [AWS CloudFront](https://aws.amazon.com/cloudfront/) dist | |
module "cloudfront" { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/cloudfront?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/cloudfront?ref=v0.19.1" | ||
# ---------------------------------------------------------------------------------------------------- | ||
# REQUIRED VARIABLES | ||
|
@@ -303,7 +303,7 @@ module "cloudfront" { | |
# ------------------------------------------------------------------------------------------------------ | ||
terraform { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/cloudfront?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/cloudfront?ref=v0.19.1" | ||
} | ||
inputs = { | ||
|
@@ -2573,15 +2573,14 @@ Unique identifier that specifies the AWS WAF web ACL, if any, to associate with | |
</TabItem> | ||
</Tabs> | ||
|
||
|
||
<!-- ##DOCS-SOURCER-START | ||
{ | ||
"originalSources": [ | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/cloudfront/readme.md", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/cloudfront/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/cloudfront/outputs.tf" | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/cloudfront/readme.md", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/cloudfront/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/cloudfront/outputs.tf" | ||
], | ||
"sourcePlugin": "module-catalog-api", | ||
"hash": "ccb79b5b6d936a30f19818d6bfdd9e4f" | ||
"hash": "b8f66be5766eac97c60f820ca4b9c70e" | ||
} | ||
##DOCS-SOURCER-END --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,25 +9,25 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; | |
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; | ||
import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; | ||
|
||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.0" lastModifiedVersion="0.18.5"/> | ||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.1" lastModifiedVersion="0.18.5"/> | ||
|
||
# S3 CloudFront Module | ||
|
||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
|
||
<a href="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> | ||
|
||
This module deploys a [CloudFront](https://aws.amazon.com/cloudfront/) distribution as a Content Distribution Network | ||
(CDN) in front of an [S3 bucket](https://aws.amazon.com/s3/). This reduces latency for your users, by caching your | ||
static content in servers around the world. It also allows you to use SSL with the static content in an S3 bucket. | ||
|
||
See the [s3-static-website module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website) for how to deploy static content in an S3 bucket. | ||
See the [s3-static-website module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website) for how to deploy static content in an S3 bucket. | ||
|
||
## Quick Start | ||
|
||
* See the [cloudfront-s3-public](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/examples/cloudfront-s3-public) and | ||
[cloudfront-s3-private](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/examples/cloudfront-s3-private) examples for working sample code. | ||
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront/vars.tf) for all parameters you can set for this module. | ||
* See the [cloudfront-s3-public](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/examples/cloudfront-s3-public) and | ||
[cloudfront-s3-private](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/examples/cloudfront-s3-private) examples for working sample code. | ||
* Check out [vars.tf](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront/vars.tf) for all parameters you can set for this module. | ||
|
||
## Public vs private S3 buckets | ||
|
||
|
@@ -130,7 +130,7 @@ most use cases, but is not particularly flexible. In particular, the limitations | |
* Only one default cache behavior is supported | ||
([cache behaviors](https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#cache-behavior-arguments) | ||
is an inline block). You can control the default cache settings using a number of parameters, including | ||
`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.19.0/modules/s3-cloudfront/vars.tf) for the full list). | ||
`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.19.1/modules/s3-cloudfront/vars.tf) for the full list). | ||
|
||
* Only two error responses are supported | ||
([error responses](https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#custom-error-response-arguments) | ||
|
@@ -162,7 +162,7 @@ into your own codebase, using it as a guide, and adding the tweaks you need. | |
module "s_3_cloudfront" { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-cloudfront?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-cloudfront?ref=v0.19.1" | ||
# ---------------------------------------------------------------------------------------------------- | ||
# REQUIRED VARIABLES | ||
|
@@ -479,7 +479,7 @@ module "s_3_cloudfront" { | |
# ------------------------------------------------------------------------------------------------------ | ||
terraform { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-cloudfront?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-cloudfront?ref=v0.19.1" | ||
} | ||
inputs = { | ||
|
@@ -1514,15 +1514,14 @@ If you have specified whitelist in <a href="#forward_cookies"><code>forward_cook | |
</TabItem> | ||
</Tabs> | ||
|
||
|
||
<!-- ##DOCS-SOURCER-START | ||
{ | ||
"originalSources": [ | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront/readme.md", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront/outputs.tf" | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront/readme.md", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront/outputs.tf" | ||
], | ||
"sourcePlugin": "module-catalog-api", | ||
"hash": "43357d9b336f3777753ffea674a8aa8d" | ||
"hash": "2cf8dbbd9bf769a543cefd17f6fd53fa" | ||
} | ||
##DOCS-SOURCER-END --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; | |
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; | ||
import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; | ||
|
||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.0" lastModifiedVersion="0.18.5"/> | ||
<VersionBadge repoTitle="Static Assets Modules" version="0.19.1" lastModifiedVersion="0.18.5"/> | ||
|
||
# S3 Static Website | ||
|
||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
<a href="https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website" className="link-button" title="View the source code for this module in GitHub.">View Source</a> | ||
|
||
<a href="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> | ||
|
||
|
@@ -29,39 +29,39 @@ This module creates an AWS S3 bucket that can be used to host a static website. | |
|
||
* Optionally configure a custom domain name for the website. | ||
|
||
* Optionally deploy a CDN in front of S3 using the [s3-cloudfront module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-cloudfront). | ||
* Optionally deploy a CDN in front of S3 using the [s3-cloudfront module](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-cloudfront). | ||
|
||
## Learn | ||
|
||
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. | ||
|
||
### Core concepts | ||
|
||
* [Quick Start](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/core-concepts.md#quick-start) | ||
* [Quick Start](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/core-concepts.md#quick-start) | ||
|
||
* [How to test the website](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/core-concepts.md#how-to-test-the-website) | ||
* [How to test the website](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/core-concepts.md#how-to-test-the-website) | ||
|
||
* [How to configure HTTPS (SSL) or a CDN?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/core-concepts.md#how-to-configure-http) | ||
* [How to configure HTTPS (SSL) or a CDN?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/core-concepts.md#how-to-configure-http) | ||
|
||
* [How to handle www + root domains](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/core-concepts.md#how-to-handle) | ||
* [How to handle www + root domains](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/core-concepts.md#how-to-handle) | ||
|
||
* [How do I configure Cross Origin Resource Sharing (CORS)?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/core-concepts.md#how-do-i-configure-cross-origin-resource-sharing-cors) | ||
* [How do I configure Cross Origin Resource Sharing (CORS)?](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/core-concepts.md#how-do-i-configure-cross-origin-resource-sharing-cors) | ||
|
||
### Repo organization | ||
|
||
* [modules](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules): The main implementation code for this repo, broken down into multiple standalone, orthogonal submodules. | ||
* [modules](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules): The main implementation code for this repo, broken down into multiple standalone, orthogonal submodules. | ||
|
||
* [examples](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/examples): This folder contains working examples of how to use the submodules. | ||
* [examples](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/examples): This folder contains working examples of how to use the submodules. | ||
|
||
* [test](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/test): Automated tests for the modules and examples. | ||
* [test](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/test): Automated tests for the modules and examples. | ||
|
||
## Deploy | ||
|
||
### Non-production deployment (quick start for learning) | ||
|
||
If you just want to try this repo out for experimenting and learning, check out the following resources: | ||
|
||
* [Examples folder](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/examples): The `examples` folder contains sample code optimized for learning, experimenting, and testing (but not production usage). | ||
* [Examples folder](https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/examples): The `examples` folder contains sample code optimized for learning, experimenting, and testing (but not production usage). | ||
|
||
### Production deployment | ||
|
||
|
@@ -82,7 +82,7 @@ If you want to deploy this repo in production, check out the following resources | |
module "s_3_static_website" { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-static-website?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-static-website?ref=v0.19.1" | ||
# ---------------------------------------------------------------------------------------------------- | ||
# REQUIRED VARIABLES | ||
|
@@ -267,7 +267,7 @@ module "s_3_static_website" { | |
# ------------------------------------------------------------------------------------------------------ | ||
terraform { | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-static-website?ref=v0.19.0" | ||
source = "git::[email protected]:gruntwork-io/terraform-aws-static-assets.git//modules/s3-static-website?ref=v0.19.1" | ||
} | ||
inputs = { | ||
|
@@ -856,15 +856,14 @@ A value that can be used to chain resources to depend on the website bucket bein | |
</TabItem> | ||
</Tabs> | ||
|
||
|
||
<!-- ##DOCS-SOURCER-START | ||
{ | ||
"originalSources": [ | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/readme.adoc", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.0/modules/s3-static-website/outputs.tf" | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/readme.adoc", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/variables.tf", | ||
"https://github.com/gruntwork-io/terraform-aws-static-assets/tree/v0.19.1/modules/s3-static-website/outputs.tf" | ||
], | ||
"sourcePlugin": "module-catalog-api", | ||
"hash": "64648650df518ac456417f0df557ea24" | ||
"hash": "080783de7504d02c056995320d83ab37" | ||
} | ||
##DOCS-SOURCER-END --> |