digio / serverless-aws-lambda-architecture

Plugin for Serverless 1.x to support Lambda architecture property

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless AWS Lambda Architecture Plugin

serverless npm package Build Status Coverage Status Downloads

A Serverless 1.x-and-above plugin to add support for AWS Lambda instruction set architectures.

Motivation

Serverless 1.x doesn't have built-in support for the AWS Lambda architectures property. This plugin adds support.

Installation

npm install --save-dev serverless-aws-lambda-architecture

Add the plugin to serverless.yml:

plugins:
  - serverless-aws-lambda-architecture

Note: Node 10.x or higher runtime required.

Usage

Inside your Serverless config, include the architectures: arm64 property against the Lambda function(s) you wish to use this architecture with.

plugins:
  - serverless-aws-lambda-architecture
  ...

functions:
  x86ArchFunction:
    handler: handler
    description: "Uses the default Lambda architecture"

  arm64Function:
    handler: handler
    description: "Uses the ARM64 architecture"
    architectures: 
      - arm64
    

About

Plugin for Serverless 1.x to support Lambda architecture property

License:Apache License 2.0


Languages

Language:JavaScript 99.1%Language:Shell 0.9%