serverless-plugin-architecture
v1.0.0
Published
Serverless Framework plugin to set architecture for AWS Lambda functions
Downloads
4
Readme
serverless-plugin-architecture
Summary
The ability to set the architecture of your Lambda functions in Serverless Framework was introduced in version 2.61.0.
This plugin is for projects that are stuck on an older version of Serverless Framework but would like to take advantage of the arm64 architecture.
Installation
Install the plugin via your favourite npm client:
npm install --save-dev serverless-plugin-architectureEnable the plugin in your serverless.yml:
plugins:
- serverless-plugin-architectureSpecify the architecture globally or at function level:
custom:
architecture: arm64or
functions:
myFunction:
handler: handler.myFunction
architecture: arm64It also works with the 2.61.0+ implementation of provider.architecture setting
but may result in a warning log during deployment on versions before schema
validation for plugins was introduced:
provider:
name: aws
architecture: arm64Notes
Just to reiterate, this plugin is not required if you are running Serverless 2.61.0 or later and can be removed once you upgrade.
