How to use cfn-response - 10 common examples

To help you get started, we’ve selected a few cfn-response examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dougmoscrop / serverless-plugin-custom-domain / lib / custom-resource.js View on Github external
.then((msg) => {
    /* eslint-disable no-console */
    console.log('completed: ', msg);
    response.send(event, context, response.SUCCESS, {});
  })
  .catch(e => {
github AOEpeople / cfn-lambdahelper / elasticache-tagger / function.js View on Github external
elasticache.addTagsToResource(params, function (err, data) {
        if (err) {
            res.Error = 'addTagsToResource call failed';
            console.log(res.Error + ':\\n', err);
            response.send(event, context, response.FAILED, res);
        } else {
            console.log("ElastiCache instances successfully tagged");
            response.send(event, context, response.SUCCESS, res);
        }
    });
};
github AOEpeople / cfn-lambdahelper / ami-baker / function / ami_baker.js View on Github external
], function (error) {
            if (error) {
                console.log('ERROR: ' + error);
                response.send(event, context, response.FAILED, res);
            } else {
                response.send(event, context, response.SUCCESS, res);
            }
        });
github AOEpeople / cfn-lambdahelper / elasticache-tagger / function.js View on Github external
elasticache.addTagsToResource(params, function (err, data) {
        if (err) {
            res.Error = 'addTagsToResource call failed';
            console.log(res.Error + ':\\n', err);
            response.send(event, context, response.FAILED, res);
        } else {
            console.log("ElastiCache instances successfully tagged");
            response.send(event, context, response.SUCCESS, res);
        }
    });
};
github AOEpeople / cfn-lambdahelper / stack-deleter / function.js View on Github external
var errorExit = function (message, event, context) {
    var res = {Error: message};
    console.log(res.Error);
    response.send(event, context, response.FAILED, res);
};
github AOEpeople / cfn-lambdahelper / ami-baker / function / ami_baker.js View on Github external
], function (error) {
            if (error) {
                console.log('ERROR: ' + error);
                response.send(event, context, response.FAILED, res);
            } else {
                response.send(event, context, response.SUCCESS, res);
            }
        });
github apls777 / spotty / spotty / providers / aws / data / lambdas / run_container / terminate_instance.js View on Github external
function failed(err) {
        console.log('FAILED:\n', err);
        return response.send(event, context, response.FAILED, err, physicalId);
    }
github apls777 / spotty / spotty / providers / aws / data / lambdas / run_container / delete_snapshot.js View on Github external
function failed(err) {
        console.log('FAILED:\n', err);
        return response.send(event, context, response.FAILED, err, physicalId);
    }
github apls777 / spotty / spotty / data / lambdas / get_instance.js View on Github external
function failed(err) {
        console.log('FAILED:\n', err);
        return response.send(event, context, response.FAILED, err, physicalId);
    }
github apls777 / spotty / spotty / data / lambdas / create_ami / search_ami.js View on Github external
function failed(err) {
        console.log('FAILED:\n', err);
        return response.send(event, context, response.FAILED, err, physicalId);
    }

cfn-response

A module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation

SEE LICENSE IN license.txt
Latest version published 9 years ago

Package Health Score

47 / 100
Full package analysis

Popular cfn-response functions