- Install the dependencies:
npm install
- Install the Serverless CLI:
npm install -g sls
- Enable verbose debugging:
export SLS_DEBUG=*
- Deploy the package:
sls deploy --stage dev
, which will sync the local file and trigger the lambda
Run sls invoke local --stage dev --function extractCustomerData
sls deploy --stage dev
Error: Failed to deploy due to existing table Solution: Delete the table manually from DynamoDB
Error: ServiceException: Lambda was unable to decrypt the environment variables due to an internal service error.
Solution: Change anything about the IAM permissions in serverless.yml
, deploy, then change them back (serverless/examples#279 (comment))