🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

aws-cloudfront-invalidation-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-cloudfront-invalidation-component

A Serverless component to invalidate CF distributions

1.0.1
latest
Source
npm
Version published
Weekly downloads
4
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 20 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts