Skip to content
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

fix(cli): abort apply if not all variables are known #2455

Merged
merged 6 commits into from
Jan 9, 2023

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Jan 3, 2023

This PR both adds support for missing variables (by throwing an explicit error when terraform encounters the variable).
It also deals with errors not bubbling up to the terminal, leading in errors not setting the exit status to 1. I added some comments for better context.

Closes #2425

@vercel
Copy link

vercel bot commented Jan 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
terraform-cdk 🔄 Building (Inspect) Jan 9, 2023 at 9:59AM (UTC)
terraform-cdk-redirects 🔄 Building (Inspect) Jan 9, 2023 at 9:59AM (UTC)

Copy link
Contributor

@mutahhir mutahhir left a comment

Choose a reason for hiding this comment

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

Nice!! 🥇

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform CLI waits for variable input forever if variables are missing
4 participants