File tree Expand file tree Collapse file tree 1 file changed +5
-23
lines changed
Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change 1- # Complete CloudFront distribution with most of supported features enabled
1+ # Complete CloudFront Distribution
22
33Configuration in this directory creates CloudFront distribution which demos such capabilities:
44
@@ -8,38 +8,20 @@ Configuration in this directory creates CloudFront distribution which demos such
88- Origin Access Identities (with S3 bucket policy)
99- Origin Access Control (recommended over OAI)
1010- Lambda@Edge
11- - ** CloudFront Functions** (lightweight JavaScript execution at edge locations)
11+ - CloudFront Functions
1212- Response Headers Policies
1313- ACM certificate
1414- Route53 record
1515- VPC Origins
1616
17- ## CloudFront Functions
18-
19- This example demonstrates CloudFront Functions integration with the module:
20-
21- ** Functions included:**
22-
23- - ` viewer-request-security.js ` - Security headers and cache key normalization
24- - ` viewer-response-headers.js ` - Add security response headers
25- - ` ab-testing.js ` - A/B testing with path rewriting
26- - ` kvstore-redirect.js ` - Example with CloudFront KeyValueStore integration (commented)
27-
28- ** Features demonstrated:**
29-
30- - Module-managed CloudFront Functions creation
31- - Function association with cache behaviors
32- - Runtime selection (cloudfront-js-2.0)
33- - KeyValueStore association pattern
34-
3517## Usage
3618
3719To run this example you need to execute:
3820
3921``` bash
40- $ terraform init
41- $ terraform plan
42- $ terraform apply
22+ terraform init
23+ terraform plan
24+ terraform apply
4325```
4426
4527Note that this example may create resources which cost money. Run ` terraform destroy ` when you don't need these resources.
You can’t perform that action at this time.
0 commit comments