Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Negan1911/aws-cloudfront-invalidation-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invalidation Component

This component will invalidate a saved Cloudfront distribution when called, it's meant to be used with @serverless/aws-cloudfront

Deprecation warning!

This component has been deprecated and it's no longer maintained. I strongly suggest to migrate to CDK. Otherwise, If you really need need this feature, put some pressure on My PR made 2 years ago with no comment.

Usage

On your custom component, after making use of @serverless/aws-cloudfront, you can call this component in this way:

  const cf_invalidate = await this.load('aws-cloudfront-invalidation-component')
  await cf_invalidate.default({ paths: ['/a/path', '/another/path'] })

That's it. We'll pick the distribution from the state that @serverless/aws-cloudfront left on the .serverless/ folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published