Lambda function for recording backpack weight to Google Spreadsheet.
- Includes gulp config for deployment
- Note about decimal numbers:
- Unfortunately, the Alexa API currently doesn't support them, and there's no viable workaround.
- Reference:
- 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'
}- Get an auth token using scripts/getNewToken.js.
- Deploy your code to your Lambda function:
gulp deploy