Skip to content

lifecycle diff likely drops the stack's region the same way snapshot did (#1261) #1264

Closed

Description

@lex00

Follow-up to #1261, split out for tracking. Unverified — I reproduced and fixed the snapshot path only, and did not confirm this one.

runLifecycleDiff iterates the same resolveStackTargets loop that runLifecycleSnapshot does, and passes only the stack name:

const r = await runLifecycleDiffLive({
  environment, lexicons, plugins, buildResult, json,
  stack: target.stack,
  ...
});

resolveStackTargets now carries region (#1262), so it is available at that call site and simply is not forwarded.

The plumbing on the receiving side already exists: observeResources accepts stacks: Array<string | { name: string; region?: string; src?: string }>.

If it is the same shape, chant lifecycle diff --live on a multi-region estate compares every stack against the ambient region, and out-of-region stacks read as absent rather than unobserved — which is the more damaging version of the bug, since #1089's whole point is that an unread resource must not be recorded as "was not there".

To confirm

Run chant lifecycle diff --live <env> against a multi-region project with AWS_DEFAULT_REGION set to one of them, and check whether the out-of-region stacks report drift/absence rather than being read correctly.

Activity

  1. added
    area:lifecycle
    bug
    P1
    on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:lifecyclebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions