Lambda function which uses IBM Watson to classifiy text.
- Includes gulp config for deployment
- Set up an IAM role or user with Lambda access using the "AWSLambdaFullAccess" policy.
- Create a conf/lambda-config.js file with the following contents:
module.exports = {
accessKeyId: null, // AWS access key here
secretAccessKey: null, // AWS secret here
region: null, // Region here (will probably be 'us-east-1')
handler: 'index.handler',
functionName: null, // Lambda function name here>
timeout: 10,
memorySize: 128,
publish: true, // default: false,
runtime: 'nodejs4.3'
}
- Write the code for your app.
- Deploy your code to your Lambda function:
gulp deploy