Fix: bundle destroy fails when bundle.tf.json file is deleted (#519)

## Changes

Adds the following steps to the destroy phase:
1. interpolate
2. write

Resolves #518 

## Tests

Tested manually due there not being an examples for tests to use.
This commit is contained in:
stikkireddy 2023-07-05 15:58:06 -04:00 committed by GitHub
parent db6313e99c
commit 533234f148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ func Destroy() bundle.Mutator {
lock.Acquire(),
bundle.Defer(
bundle.Seq(
terraform.Interpolate(),
terraform.Write(),
terraform.StatePull(),
terraform.Plan(terraform.PlanGoal("destroy")),
terraform.Destroy(),