Skip to content

Commit

Permalink
feat(cfn/changesets): Introduce support for CFN changesets (#7071)
Browse files Browse the repository at this point in the history
* feat(cfn/changesets): Introduce support for CFN changesets

This patch introduces a flag into the deploy cloud formation UI to
chose wether the deployment operation will create/update a full CFN
stack or create a change set instead. If the checkbox is ticked, a
text form appear to allow the user specify the change set name.

* fix odd spacing
  • Loading branch information
xavileon authored and maggieneterval committed Jun 27, 2019
1 parent ea94928 commit b53ac89
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@ export class DeployCloudFormationStackConfigController implements IController {
this.cloudFormationStackArtifactController.accountsForArtifact.length > 1
);
}

public isChangeSet() {
return this.$scope.stage.isChangeSet;
}

public toggleChangeSet() {
this.$scope.stage.isChangeSet = !this.$scope.stage.isChangeSet;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ <h4>Template Configuration</h4>
<label class="sm-label-right">
<input type="text" class="form-control input-sm" required ng-model="stage.stackName" />
</label>
<br />
<label>
<input type="checkbox" ng-checked="ctrl.isChangeSet()" ng-click="ctrl.toggleChangeSet()" />
<strong>Create CloudFormation ChangeSet</strong>
</label>
</stage-config-field>
<div ng-if="ctrl.isChangeSet()">
<stage-config-field label="ChangeSet name">
<label class="sm-label-right">
<input type="text" class="form-control input-sm" ng-model="stage.changeSetName" />
</label>
</stage-config-field>
</div>
<stage-config-field label="Source" help-key="aws.cloudformation.source">
<label class="sm-label-right">
<input type="radio" ng-model="ctrl.$scope.stage.source" value="{{ctrl.textSource}}" />
Expand Down

0 comments on commit b53ac89

Please sign in to comment.