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
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/cloudfront.mdx
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ function handler(event) {
83
83
Create the function with [`CreateFunction`](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateFunction.html):
84
84
85
85
```bash
86
-
awslocal cloudfront create-function \
86
+
lstk aws cloudfront create-function \
87
87
--name stamp-env \
88
88
--function-code fileb://stamp-env.js \
89
89
--function-config 'Comment=stamp the environment,Runtime=cloudfront-js-2.0'
@@ -135,7 +135,7 @@ Write the event object to a file:
135
135
Pass the ETag returned by `create-function` as `--if-match`:
136
136
137
137
```bash
138
-
awslocal cloudfront test-function \
138
+
lstk aws cloudfront test-function \
139
139
--name stamp-env \
140
140
--if-match 54ddd071 \
141
141
--event-object fileb://event.json \
@@ -173,7 +173,7 @@ Use it for debugging, but do not assert on it in tests.
173
173
[`PublishFunction`](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_PublishFunction.html) marks the function ready to associate with a distribution:
@@ -282,7 +282,7 @@ On a plan without the data plane you can create a store and associate it with a
282
282
Create a store with [`CreateKeyValueStore`](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateKeyValueStore.html):
283
283
284
284
```bash
285
-
awslocal cloudfront create-key-value-store \
285
+
lstk aws cloudfront create-key-value-store \
286
286
--name tenant-map \
287
287
--comment "tenant to environment"
288
288
```
@@ -317,7 +317,7 @@ Control-plane commands are unaffected.
317
317
:::
318
318
319
319
:::tip
320
-
When you use `awslocal`, install the AWS Common Runtime once with `pip install 'botocore[crt]'`.
320
+
When you use `lstk aws`, install the AWS Common Runtime once with `pip install 'botocore[crt]'`.
321
321
These requests are signed with SigV4A, which a `pip`-installed AWS CLI cannot sign without it.
322
322
:::
323
323
@@ -332,7 +332,7 @@ Writes require the current ETag in `--if-match`.
332
332
Read it from the data plane with [`DescribeKeyValueStore`](https://docs.aws.amazon.com/cloudfront-keyvaluestore/latest/APIReference/API_DescribeKeyValueStore.html):
Write several keys at once with [`UpdateKeys`](https://docs.aws.amazon.com/cloudfront-keyvaluestore/latest/APIReference/API_UpdateKeys.html), which also accepts `--deletes`:
Single keys are handled with [`PutKey`](https://docs.aws.amazon.com/cloudfront-keyvaluestore/latest/APIReference/API_PutKey.html), [`GetKey`](https://docs.aws.amazon.com/cloudfront-keyvaluestore/latest/APIReference/API_GetKey.html) and [`DeleteKey`](https://docs.aws.amazon.com/cloudfront-keyvaluestore/latest/APIReference/API_DeleteKey.html):
0 commit comments