Skip to content

Commit

Permalink
Add a CFN service role ARN for the stack deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Dec 7, 2018
1 parent 2f72525 commit b573000
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cfn/manager/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ func (c *StackCollection) DeleteStack(name string) (*Stack, error) {
StackName: i.StackId,
}

if c.cfnSvcRoleArn != "" {
input = input.SetRoleARN(c.cfnSvcRoleArn)
}

if _, err := c.provider.CloudFormation().DeleteStack(input); err != nil {
return nil, errors.Wrapf(err, "not able to delete stack %q", name)
}
Expand Down

0 comments on commit b573000

Please sign in to comment.