Skip to content

Commit

Permalink
Merge pull request #3 from tkgregory/use-role-arn-for-migrate-stack-c…
Browse files Browse the repository at this point in the history
…reation

Add role ARN to the CreateStackRequest in the migrate stack task.
  • Loading branch information
JustinPihony authored Oct 12, 2020
2 parents 32b78ea + 77837f2 commit dafaa57
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ private void createStack(AmazonCloudFormation cfn) throws IOException {
File cfnTemplateFile = getCfnTemplateFile();
List<Parameter> cfnStackParams = getCfnStackParams();
List<Tag> cfnStackTags = getCfnStackTags();
String cfnRoleArn = getCfnRoleArn();
String cfnStackPolicyUrl = getCfnStackPolicyUrl();
File cfnStackPolicyFile = getCfnStackPolicyFile();
String cfnOnFailure = getCfnOnFailure();
Expand All @@ -240,7 +241,8 @@ private void createStack(AmazonCloudFormation cfn) throws IOException {
.withStackName(stackName)
.withParameters(cfnStackParams)
.withTags(cfnStackTags)
.withOnFailure(cfnOnFailure);
.withOnFailure(cfnOnFailure)
.withRoleARN(cfnRoleArn);

// If template URL is specified, then use it
if (Strings.isNullOrEmpty(cfnTemplateUrl) == false) {
Expand Down

0 comments on commit dafaa57

Please sign in to comment.