-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGruntfile.js
More file actions
33 lines (29 loc) · 940 Bytes
/
Gruntfile.js
File metadata and controls
33 lines (29 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Follow https://medium.com/@SlyFireFox/micro-services-with-aws-lambda-and-api-gateway-part-1-f11aaaa5bdef
//Run
//npm install -g grunt-cli
//npm install grunt-aws-lambda grunt-pack --save-dev
const grunt = require('grunt');
grunt.loadNpmTasks('grunt-aws-lambda');
grunt.initConfig({
lambda_invoke: {
default: {}
},
lambda_deploy: {
awsLexInterceptor: {
arn: 'arn:aws:lambda:us-east-1:894598711988:function:LexInterceptor-MsBotFxInterceptorFunction-UNEXH85X2GLX',
options: {
region: 'us-east-1',
handler: 'msbotFxInterceptor.handler'
}
}
},
lambda_package: {
awsLexInterceptor: {
options: {
include_time: false,
include_version: false
}
}
}
});
grunt.registerTask('deploy', ['lambda_package:awsLexInterceptor', 'lambda_deploy:awsLexInterceptor']);