Merge pull request #450 from joostfarla/resdep

Fix updating CF stack
This commit is contained in:
Eslam λ Hefnawy 2016-01-03 21:13:04 +02:00
commit 48c200f522

View File

@ -135,30 +135,28 @@ module.exports = function(config) {
// CF Params
let params = {
Capabilities: [
Capabilities: [
'CAPABILITY_IAM'
],
Parameters: [],
Tags: [{
Key: 'STAGE',
Value: stage
}],
TemplateURL: templateUrl
};
// Create or Update
// Create stack
if (!stackName) {
params.Tags = [{
Key: 'STAGE',
Value: stage
}];
params.StackName = CloudFormation.sGetResourcesStackName(stage, project);
params.OnFailure = 'DELETE';
return CloudFormation.createStackPromised(params);
} else if (type == 'update') {
params.StackName = stackName;
params.OnFailure = 'ROLLBACK';
return CloudFormation.updateStackPromised(params);
}
// Update stack
params.StackName = stackName;
return CloudFormation.updateStackPromised(params);
};
/**