New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spytecgps/serverless-axiom-layer-plugin

Package Overview
Dependencies
Maintainers
11
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spytecgps/serverless-axiom-layer-plugin

This plugin will add Axiom layer to your lambda functions

  • 0.0.19
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
48
decreased by-56.76%
Maintainers
11
Weekly downloads
 
Created
Source

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: 11
    defaultArchitecture: YOUR_DEFAULT_ARCHITECTURE  # Default: x86_64
    enabled: true/false                             # Default: true
    fullLayerArn: THE_FULL_AXIOM_LAYER_ARN          # Default: null

If the fullLayerArn is defined, it will be used without any automatic layer creation. Hence, the account, layerVersion and defaultArchitecture will be ignored.

Is possible to only define the fullLayerArn or layerVersion inside a specific function:

function:
  handler: 'src/index.run'
  axiom:
    fullLayerArn: THE_FULL_AXIOM_LAYER_ARN          # Default: null
    layerVersion: YOUR_AXIOM_LAYER_VERSION          # Default: null

If the fullLayerArn or layerVersion is defined at the function level, it will take predecedence over the custom.axiom, if it's defined.

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

Keywords

FAQs

Package last updated on 17 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc