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
- Host: GitHub
- URL: https://github.com/digio/serverless-aws-lambda-architecture
- Owner: digio
- License: apache-2.0
- Created: 2022-02-28T05:38:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T23:33:27.000Z (over 4 years ago)
- Last Synced: 2025-09-17T02:59:55.554Z (9 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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