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

atlantis running terraform should default to not accepting input #268

Closed
majormoses opened this issue Sep 10, 2018 · 1 comment · Fixed by #277
Closed

atlantis running terraform should default to not accepting input #268

majormoses opened this issue Sep 10, 2018 · 1 comment · Fixed by #277
Labels
help wanted Good feature for contributors

Comments

@majormoses
Copy link
Contributor

majormoses commented Sep 10, 2018

I got the following:

exit status 1: running "sh -c terraform plan -refresh -no-color -out /opt/atlantis/.atlantis/repos/<REDACTED>/terraform_github/189/default/<REDACTED>/default.tfplan -var atlantis_user=<REDACTED>" in "/opt/atlantis/.atlantis/repos/<REDACTED>/terraform_github/189/default/<REDACTED>"
var.github_token
  export TF_VAR_github_token=$MY_TOKEN

  Enter a value: 
var.github_token
  export TF_VAR_github_token=$MY_TOKEN

  Enter a value: 
var.github_token
  export TF_VAR_github_token=$MY_TOKEN

  Enter a value: 
var.github_token
  export TF_VAR_github_token=$MY_TOKEN

  Enter a value: 

Error: Error asking for user input: missing required value for "github_token"

Asking for input when being run as a user makes a lot of sensu but does not make sense in the context of an automated system such as atlantis. I think we should use input=false by default per: https://www.terraform.io/guides/running-terraform-in-automation.html

Atlantis version: 0.4.5

@lkysow
Copy link
Member

lkysow commented Sep 11, 2018

Agreed, this change will be easy.

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

Successfully merging a pull request may close this issue.

2 participants