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

Missing variable block plan / deployment - github heng #1999

Open
parisnakitakejser opened this issue Dec 9, 2024 · 2 comments
Open

Missing variable block plan / deployment - github heng #1999

parisnakitakejser opened this issue Dec 9, 2024 · 2 comments

Comments

@parisnakitakejser
Copy link

Describe the bug
When you have a variable you missing to set form a module, lats say you variable is github_token and you include this module into Terragrunt / Terraform and forgot to set the github_token variable input, in CLI its will prompt you for this variable, when you test it locally.

when you push it to GitHub Terramate do not act on that issue and the github runner just heng, until its timeout or got canceled.

Additional context
Add some validation for await terminal promoting and add some timeout, eg. 1min or 5min or something like that so the runner cost on GitHub got reduced.

@parisnakitakejser parisnakitakejser added the bug Something isn't working label Dec 9, 2024
@i4ki
Copy link
Contributor

i4ki commented Dec 10, 2024

Terramate does not prompt for variables in the console. This is only done by Terraform (and perhaps Terragrunt but I don't know). In the case of Terraform you can provide -input=false to all commands so it fails straightaway if the input is not provided.

@i4ki i4ki removed the bug Something isn't working label Dec 10, 2024
@i4ki
Copy link
Contributor

i4ki commented Dec 10, 2024

Alternatively, you can export TF_INPUT=1.

Let me know if this address your issue.

@mariux mariux changed the title [BUG] Missing variable block plan / deployment - github heng Missing variable block plan / deployment - github heng Dec 13, 2024
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

No branches or pull requests

2 participants