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

Validate required variables and support (or show how to use) provider {} HCL section #10

Closed
spkane opened this issue Aug 7, 2019 · 0 comments

Comments

@spkane
Copy link

spkane commented Aug 7, 2019

After local testing we moved our terraform into a Jenkins based workflow, but forgot to set the JIRA_URL in the environment. The apply failed with a very mis-leading error message:

[global] Error: Error applying plan:
[global] 
[global] 1 error(s) occurred:
[global] 
[global] * module.base_account.jira_issue.aws-account-creation-otc: 1 error(s) occurred:
[global] 
[global] * jira_issue.aws-account-creation-otc: unexpected EOF

The provider should really verify that the variables are non-null, non-empty string, and that the URL at least looks like a proper URL, and if not it should provide some useful feedback about the issue.

I'm also not sure if the provider supports the provider HCL block, but if not, it would be useful and an example of how to set it up would also help. I can imagine something like this.

provider "jira" {
  url = "https://example.atlassian.com"
  user = "user@example.com"
}
@spkane spkane changed the title Validate required variables and support (or show how to use provider {} section) Validate required variables and support (or show how to use) provider {} HCL section Aug 7, 2019
fourplusone added a commit that referenced this issue Aug 8, 2019
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