in lambda/appStatus/index.js [50:81]
function govCloudFormationStatus(paramsSSM){
return new Promise((resolve, reject) => {
let cloudformation = new AWS.CloudFormation({
region: paramsSSM.govRegion,
accessKeyId: paramsSSM.accessKey,
secretAccessKey: paramsSSM.secretKey
});
let params = {
StackName: 'gov-cloud-import'
};
let temp = {};
cloudformation.describeStacks(params, function(err, data) {
if (err){
if (err && err.statusCode == '400') {
temp.region = paramsSSM.govRegion;
temp.status = "Not Installed";
status.push(temp);
resolve("Not Installed");
} else {
console.log(err);
reject(err);
}
} else {
temp.region = paramsSSM.govRegion;
temp.status = data.Stacks[0].StackStatus;
temp.create = data.Stacks[0].CreationTime;
status.push(temp);
resolve();
}
});
});
}