-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
42 lines (40 loc) · 859 Bytes
/
Gruntfile.js
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
33
34
35
36
37
38
39
40
41
42
const grunt = require("grunt");
grunt.loadNpmTasks("grunt-aws-lambda");
grunt.initConfig({
lambda_invoke: {
default: {
options: {
file_name: "src/index.js",
event: "test-data/event.json"
}
}
},
lambda_deploy: {
default: {
options: {
aliases: "beta",
enableVersioning: true
},
arn: "arn:aws:lambda:us-east-1:837603326872:function:pronunciationHelper"
},
prod: {
options: {
aliases: "prod",
enableVersioning: true
},
arn: "arn:aws:lambda:us-east-1:837603326872:function:pronunciationHelper"
}
},
lambda_package: {
default: {},
prod: {}
}
});
grunt.registerTask("deploy", [
"lambda_package:default",
"lambda_deploy:default"
]);
grunt.registerTask("deploy_prod", [
"lambda_package:prod",
"lambda_deploy:prod"
]);