Skip to content

feat: document tg permit missing planfiles label #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilya-hontarau
Copy link
Contributor

@ilya-hontarau ilya-hontarau commented Apr 1, 2025

Description of the change

Checklist

Please make sure that the proposed change checks all the boxes below before requesting a review:

  • I have reviewed the guidelines for contributing to this repository.
  • The preview looks fine.
  • The tests pass.
  • The commit history is clean and meaningful.
  • The pull request is opened against the main branch.
  • The pull request is no longer marked as a draft.
  • You agree to license your contribution under the MIT license to Spacelift (not required for Spacelift employees).
  • You have updated the navigation files correctly:
    • No new pages have been added, or;
    • Only nav.yaml has been updated because the changes only apply to SaaS, or;
    • Only nav.self-hosted.yaml has been updated because the changes only apply to Self-Hosted, or;
    • Both nav.yaml and nav.self-hosted.yaml have been updated.

If the proposed change is ready to be merged, please request a review from @spacelift-io/solutions-engineering. Someone will review and merge the pull request.

Spacelift employees should request reviews from the relevant engineers and are allowed to merge pull requests after they got at least one approval.

Thank you for your contribution! 🙇


## Run-all with external dependencies

By default, run-all within a stack that has external dependencies doesn't work as expected because it can't read the state from the dependent stacks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about being more specific.

When a Spacelift stack configured with run-all points to a module that is not at the root of the Terragrunt module tree, execution may fail due to missing plan files from upstream dependencies. This happens because Terragrunt expects to manage the full dependency graph starting from the root module, and cannot correctly resolve external dependencies from a partial context.

To work around this limitation, you can add the stack label feature:terragrunt_permit_missing_planfiles, which allows Terragrunt to skip missing plan file errors. Be aware that you may still see errors from terraform plan commands in the logs—these are expected and will not interrupt the workflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants