Skip to content

Commit 68f0a89

Browse files
author
David Brown
committed
Removed s from file names in examples to match file directories.
1 parent 1b25284 commit 68f0a89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cd amazon-cloudfront-functions/
5050
aws cloudfront create-function \
5151
--name add-cache-control-headers \
5252
--function-config Comment="Function to add cache-control headers",Runtime=cloudfront-js-1.0 \
53-
--function-code fileb://add-cache-control-headers/index.js
53+
--function-code fileb://add-cache-control-header/index.js
5454
5555
{
5656
"Location": "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::XXXXXXXXXXXX:function/add-cache-control-headers",
@@ -83,7 +83,7 @@ Test the function using the provided test event by running the following command
8383
aws cloudfront test-function \
8484
--name add-cache-control-headers \
8585
--if-match EXXXXXXXXX \
86-
--event-object fileb://add-cache-control-headers/test-event.json
86+
--event-object fileb://add-cache-control-header/test-event.json
8787
8888
{
8989
"TestResult": {

add-cache-control-header/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If your origin sends a `Cache-Control` header in responses to CloudFront, this h
1313
To validate that the function is working as expected, you can use the provided `test-event.json` test object. To test, you can use the `test-function` CLI command that will look something like this:
1414

1515
```
16-
$ aws cloudfront test-function --if-match EXXXXXXXXXXXX --name add-cache-control-headers --event-object fileb://add-cache-control-headers/test-event.json
16+
$ aws cloudfront test-function --if-match EXXXXXXXXXXXX --name add-cache-control-headers --event-object fileb://add-cache-control-header/test-event.json
1717
```
1818

1919
If the function has been set up correctly, you should see a result similar to the following with the `cache-control` header being added in the `FunctionOutput` JSON object:

0 commit comments

Comments
 (0)