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

Make Terraform validate template_file on plan phase #20770

Closed
fcappi opened this issue Mar 20, 2019 · 2 comments
Closed

Make Terraform validate template_file on plan phase #20770

fcappi opened this issue Mar 20, 2019 · 2 comments

Comments

@fcappi
Copy link

fcappi commented Mar 20, 2019

Current Terraform Version

terraform -v
Terraform v0.11.10

Use-cases

Currently, when there is an issue with a template file like having a variable being used in the file that was not specified as input, terraform only fails at the apply phase. Then you have to destroy the infrastructure that is already created so far, fix the issue in the template file and then apply again. This can be time-consuming if you are creating many resources.

Attempted Solutions

Currently, you have to terraform destroy, fix the file and then terraform applyagain

Proposal

I think it would be great if Terraform validates the template files before starting applying all the changes, this way we can make sure it will not break during infrastructure creation.

@ghost
Copy link

ghost commented Mar 20, 2019

This issue has been automatically migrated to hashicorp/terraform-provider-template#57 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-template#57.

@ghost
Copy link

ghost commented Aug 13, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Aug 13, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants