-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgruntFile.js
More file actions
38 lines (34 loc) · 822 Bytes
/
Copy pathgruntFile.js
File metadata and controls
38 lines (34 loc) · 822 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
33
34
35
36
37
38
var grunt = require('grunt');
var config = require('config');
grunt.loadNpmTasks('grunt-aws-lambda');
grunt.initConfig({
lambda_invoke: {
default: {
// options: {
// file_name: 'CreateThumbnail.js'
// }
}
},
lambda_deploy: {
default: {
// function: 'CreateThumbnail'
arn : config.get('Alexa.lambda-arn'),
options : {
region : 'us-east-1',
profile : 'personal',
file_name: 'skill.js'
}
},
},
lambda_package: {
default: {
arn : config.get('Alexa.lambda-arn'),
options : {
region : 'us-east-1',
profile : 'personal',
file_name: 'skill.js'
}
}
}
});
grunt.registerTask('deploy', ['lambda_package', 'lambda_deploy'])