Skip to content

Instantly share code, notes, and snippets.

@marcelpanse
Created April 30, 2016 13:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelpanse/5bc08a72bdcd6b5e21d49bf2e5915504 to your computer and use it in GitHub Desktop.
Save marcelpanse/5bc08a72bdcd6b5e21d49bf2e5915504 to your computer and use it in GitHub Desktop.
module.exports = function (grunt) {
grunt.initConfig({
lambda_invoke: {
default: {
options: {
// Task-specific options go here.
file_name: "UpdateAccount.js"
}
}
},
lambda_deploy: {
default: {
options: {
// Task-specific options go here.
timeout: 5,
memory: 512,
region: "eu-west-1"
},
arn: 'arn:aws:lambda:eu-west-1:568910095166:function:UpdateAccount'
}
},
lambda_package: {
default: {
options: {
// Task-specific options go here.
}
}
}
});
grunt.registerTask('default', ['lambda_invoke']);
grunt.registerTask('deploy', ['lambda_package', 'lambda_deploy']);
grunt.loadNpmTasks('grunt-aws-lambda');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment