Created
September 21, 2024 13:20
-
-
Save brianleroux/03743404802086f2300261de8458711d to your computer and use it in GitHub Desktop.
Invalidate a CloudFront CDN distribution cache
This file contains hidden or 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
import awsLite from '@aws-lite/client' | |
const aws = await awsLite() | |
await aws.CloudFront.CreateInvalidation({ | |
CallerReference: Date.now()+'', | |
Id: 'xxx', | |
InvalidationBatch: '/*', | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment