Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Releases: icfnext/aws-lambda-toolkit

Optional Publish added

06 Sep 11:53
Compare
Choose a tag to compare

An optional publish property has been added to both the configuration file as well as the parameter object passed to the .deploy() task. Setting it to true will increment the lambda functions version whenever you deploy. Setting it to false (or not setting it at all) will leave the version alone when pushing up new lambda function code.

Since you can also pipe this into the parameter object it allows you to publish code without increasing the version, then create a separate task for incrementing the version:

// gulpfile.js
var lambdaToolkit = require('aws-lambda-toolkit');

gulp.task('deploy', function () {
    lambdaToolkit.deploy();
});

gulp.task('publish', function () {
   lambdaToolkit.deploy({
      publish: true
   });
});
// tasks.js
var lambdaToolkit = require('aws-lambda-toolkit');

if (process.argv[process.argv.length - 1] === 'deploy') {
   lambdaToolkit.deploy();
}

if (process.argv[process.argv.length - 1] === 'publish') {
   lambdaToolkit.deploy({
      publish: true
   });
}

If you would like every deployment to increment the version (the old functionality), you can alternatively add the following to your .awstoolkitconfig.json file:

{
   . . .,
   "publish": true,
   . . .
}

External configuration files + Lazy Mode Maximus

31 May 03:34
Compare
Choose a tag to compare
  • You can now toss your deployment/testing configurations into .awstoolkitconfig.json. Examples are available on the readme.
  • You can now throw AWS credentials (secret/access key) into .awscredentials.json. Examples available on the readme.
  • If you haven't created the lambda via the AWS console/web interface the toolkit will now auto-create the lambda on first deployment.