JSPM

@spytecgps/serverless-axiom-layer-plugin

0.0.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q77297F
  • License MIT

This plugin will add Axiom layer to your lambda functions

Package Exports

  • @spytecgps/serverless-axiom-layer-plugin
  • @spytecgps/serverless-axiom-layer-plugin/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@spytecgps/serverless-axiom-layer-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Serverless Axiom Layer Plugin

Overview

This Serverless plugin automates the integration of the Axiom layer into your Serverless functions.

Installation

npm install --save-dev @spytecgps/serverless-axiom-layer-plugin

Configuration

Add the plugin to your serverless.yml:

plugins:
  - '@spytecgps/serverless-axiom-layer-plugin'

Specify the Axiom plugin configuration:

custom:
  axiom:
    account: YOUR_AXIOM_ACCOUNT                     # Default: 694952825951
    layerVersion: YOUR_AXIOM_LAYER_VERSION          # Default: 4
    defaultArchitecture: YOUR_DEFAULT_ARCHITECTURE  # Default: x86_64
    enabled: true/false                             # Default: true

Usage

Run serverless deploy to deploy your function with the Axiom layer.

For a correct plugin uninstall:

  • Change the configuration to false, in order to remove the layer from all the lambda functions.
  • Run serverless plugin uninstall --name '@spytecgps/serverless-axiom-layer-plugin'

License

MIT License