aws-cloudfront-invalidation-component

1.0.1 • Public • Published

Invalidation Component

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i aws-cloudfront-invalidation-component

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • negan1911