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
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,9 @@ myNextApplication:
245
245
originAccessIdentityId: XYZEXAMPLE #optional
246
246
paths: ["/*"] # which paths should be invalidated on deploy, default matches everything, empty array skips invalidation completely
247
247
waitBeforeInvalidate: true # by default true, it waits for the CloudFront distribution to have completed before invalidating, to avoid possibly caching old page
248
+
tags: # Add any tags you want
249
+
tag1: val1
250
+
tag2: val2
248
251
```
249
252
250
253
This is particularly useful for caching any of your Next.js pages at CloudFront's edge locations. See [this](https://github.com/serverless-nextjs/serverless-next.js/tree/master/packages/serverless-components/nextjs-component/examples/app-with-custom-caching-config) for an example application with custom cache configuration.
@@ -363,6 +366,9 @@ The exhaustive list of AWS actions required for a deployment:
363
366
"cloudfront:ListPublicKeys",
364
367
"cloudfront:ListStreamingDistributions",
365
368
"cloudfront:UpdateDistribution",
369
+
"cloudfront:TagResource", // for adding tags
370
+
"cloudfront:UntagResource", // for adding tags
371
+
"cloudfront:ListTagsForResource", // for adding tags
0 commit comments