Skip to content

Commit

Permalink
Added setUsePreviousTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Albert authored and Jeff Albert committed Feb 24, 2017
1 parent efe0e60 commit aec1266
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Arrays;
import java.util.List;

import com.amazonaws.services.cloudformation.model.*;
import lombok.Getter;
import lombok.Setter;

Expand All @@ -31,17 +32,6 @@

import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.cloudformation.AmazonCloudFormation;
import com.amazonaws.services.cloudformation.model.Capability;
import com.amazonaws.services.cloudformation.model.CreateStackRequest;
import com.amazonaws.services.cloudformation.model.CreateStackResult;
import com.amazonaws.services.cloudformation.model.DeleteStackRequest;
import com.amazonaws.services.cloudformation.model.DescribeStacksRequest;
import com.amazonaws.services.cloudformation.model.DescribeStacksResult;
import com.amazonaws.services.cloudformation.model.Parameter;
import com.amazonaws.services.cloudformation.model.Stack;
import com.amazonaws.services.cloudformation.model.Tag;
import com.amazonaws.services.cloudformation.model.UpdateStackRequest;
import com.amazonaws.services.cloudformation.model.UpdateStackResult;
import com.google.common.base.Strings;

public class AmazonCloudFormationMigrateStackTask extends ConventionTask {
Expand Down Expand Up @@ -167,6 +157,7 @@ private void updateStack(AmazonCloudFormation cfn) throws IOException {
req.setTemplateBody(FileUtils.readFileToString(cfnTemplateFile));
getLogger().info("Using template file: {}", "$cfnTemplateFile.canonicalPath");
} else {
req.setUsePreviousTemplate(true);
getLogger().info("No template specified, updating existing template");
}
if (isCapabilityIam()) {
Expand Down

0 comments on commit aec1266

Please sign in to comment.