CloudFormationManager.prototype.getChangeSetStatus = function()

in pipeline/local_modules/cloudformation/cloudformation_manager.js [94:118]


CloudFormationManager.prototype.getChangeSetStatus = function (stackName, changeSetName) {
    var self = this;
    return self.getCloudFormationClient()
        .then(function (cloudformationClient) {
            var params = {
                ChangeSetName: changeSetName,
                StackName: stackName
            };
            console.log("Checking changeSet status: " + JSON.stringify(params) + "...");
            return cloudformationClient.describeChangeSet(params).promise();
        })
        .then(function (changeSetData) {
            return {
                "status": changeSetData.Status,
                "executionStatus": changeSetData.ExecutionStatus
            }
        })
        .catch(function(err) {
            console.log("Got an error while checking changeSet status. Maybe changeSet does not exist? Error: " + err.message);
            return {
                "status": CHANGE_SET_DOES_NOT_EXIST,
                "executionStatus": CHANGE_SET_DOES_NOT_EXIST
            }
        });
}