An open API service indexing awesome lists of open source software.

https://github.com/digio/serverless-aws-lambda-architecture

Plugin for Serverless 1.x to support Lambda architecture property
https://github.com/digio/serverless-aws-lambda-architecture

Last synced: 9 days ago
JSON representation

Plugin for Serverless 1.x to support Lambda architecture property

Awesome Lists containing this project

README

          

# Serverless AWS Lambda Architecture Plugin

[![serverless][sls-image]][sls-url]
[![npm package][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][npm-url]

A Serverless 1.x-and-above plugin to add support for [AWS Lambda instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).

## 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:

```yaml
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.

```yaml
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

```

[sls-image]: http://public.serverless.com/badges/v3.svg
[sls-url]: http://www.serverless.com
[npm-image]: https://img.shields.io/npm/v/serverless-aws-lambda-architecture.svg
[npm-url]: http://npmjs.org/package/serverless-aws-lambda-architecture
[build-image]: https://github.com/digio/serverless-aws-lambda-architecture/actions/workflows/npm-publish.yml/badge.svg
[build-url]: https://github.com/digio/serverless-aws-lambda-architecture/actions
[coveralls-image]: https://coveralls.io/repos/github/digio/serverless-aws-lambda-architecture/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/digio/serverless-aws-lambda-architecture?branch=master
[downloads-image]: https://img.shields.io/npm/dm/serverless-aws-lambda-architecture.svg