add a comment

This commit is contained in:
Andrew Nester 2024-11-05 21:13:28 +01:00
parent f2ff4db494
commit 99874a2b8f
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ func newDestroyCommand() *cobra.Command {
diags = bundle.Apply(ctx, b, bundle.Seq( diags = bundle.Apply(ctx, b, bundle.Seq(
phases.Initialize(), phases.Initialize(),
// We need to resolve artifact variable (how we do it in build phase)
// because some of the to-be-destroyed resource might use this variable.
// Not resolving might lead to terraform "Reference to undeclared resource" error
mutator.ResolveVariableReferences( mutator.ResolveVariableReferences(
"artifacts", "artifacts",
), ),