mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
commit
48c200f522
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user