Callback Pipeline
This module help to send back function status from lambda when it's invoked by codepipeline. Code pipeline lock its execution until some work status is send back from lambda function when it had been invoked
Version: Draft State: on devlopment
Install module:
npm install @arkhotech/aws-pipeline-callback
For use this module, you must to add a declaration inside your code on the following way
pline = require('@arkhotech/aws-pipeline-callback')
var params = {
status: pline.OK, //States ERROR or OK. Error inform to pipeline job that it was some error, otherwise put OK.
jobId: '93011465-767b-4252-a22a-49b895d29233', //jobid. You must recover from SNS struct
error: null, //This message will be show on codepipeline console when you want yo inform from your function
}
pline.callbackPirpeline(params, function(err){
console.log('had a error')
})