@cloudwiry/serverless-aws-lambda-arch
v1.0.0
Published
Enable Architectures for AWS Lambda to use Graviton2
Downloads
2
Readme
Cloudwiry and AWS Lambda in Graviton2
This is a Serveless Framework plugin that allow to use AWS Lambda functions powered by Graviton2.
Sponsored by: Cloudwiry
Usage:
- Install the plugin
npm i [email protected]:teamgenie/serverless-aws-lambda-arch.git
- Add the plugin to your project's
serverless.yml
and mark your functions using thearchitectures
property like this sample.
service: arch-test
plugins:
- serverless-aws-lambda-arch
provider:
name: aws
runtime: python3.9
package:
patterns:
- '!node_modules/**'
functions:
dummyFn1:
handler: handler
description: "Test fn1"
dummyFn2_RunningInARM64:
handler: handler
description: "Test fn2"
architectures: arm64
- Have fun!
sls deploy
Quick test
cd test && npm i && sls deploy