-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGruntfile.js
More file actions
30 lines (28 loc) · 751 Bytes
/
Copy pathGruntfile.js
File metadata and controls
30 lines (28 loc) · 751 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
var grunt = require('grunt');
grunt.loadNpmTasks('grunt-aws-lambda');
grunt.initConfig({
lambda_invoke: {
task: {
options: {
event: 'event_handle.json'
}
},
monitor: {
options: {
event: 'event_monitor.json'
}
}
},
lambda_deploy: {
default: {
arn: 'arn:aws:lambda:us-east-1:608866947342:function:codedeploy-opsworks-runner'
}
},
lambda_package: {
default: {
}
}
});
grunt.registerTask('deploy', ['lambda_package', 'lambda_deploy']);
grunt.registerTask('lambda_invoke_monitor', ['lambda_invoke:monitor']);
grunt.registerTask('lambda_invoke_task', ['lambda_invoke:task']);