@arkhotech/aws-pipeline-callback

1.0.7 • Public • Published

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')
	})

Package Sidebar

Install

npm i @arkhotech/aws-pipeline-callback

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

3.16 kB

Total Files

4

Last publish

Collaborators

  • eleiva
  • sebek_msd
  • pbade
  • mgonzalezarkho