This repository contains sample CloudFormation template which will deploy a basic AWS Lambda function via AWS SAM which emits metrics using Embedded Metric Format.
- Clone the repository
- Install AWS SAM CLI https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install. html
- Set up virtual environment
python3 -m venv .env
- Activate the virtual environment
source .env/bin/activate
- Install dependencies from
requirements.txt
intolambda_layer
viapip install -r requirements.txt --target lambda_layer/python
sam build
sam deploy --stack-name sample-lambda