Simple example of deploying AWS Lambda function using Grunt.JS
- Create AWS Lambda function using AWS Management Console (learn here)
- Clone the repository:
git clone [email protected]:VTurturika/aws-lambda-grunt-deploy.git
- Install dependencies packages:
npm install
- Edit your AWS Lambfa function in index.js. For more information learn here.
- Specify your local test events in events.json (for
grunt lambda_invoke
). - Edit your AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_ID and your lambda function ARN in credentials.env
- Set up your environment variables:
source credentials.env
- Deploy your function:
grunt deploy