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

Show Rendered Output in terraform plan for template_dir #26957

Closed
infa-pavakuma opened this issue Nov 18, 2020 · 2 comments
Closed

Show Rendered Output in terraform plan for template_dir #26957

infa-pavakuma opened this issue Nov 18, 2020 · 2 comments
Labels
enhancement new new issue not yet triaged

Comments

@infa-pavakuma
Copy link

infa-pavakuma commented Nov 18, 2020

template_dir does not show the rendered output while executing the terraform plan command. However the template_file shows the rendered output while executing terraform plan. Please add the feature to show the rendered files ( files in the sub-directories also ) while executing terraform plan for template_dir resources.

Terraform version:
Terraform v0.12.28

@infa-pavakuma infa-pavakuma added enhancement new new issue not yet triaged labels Nov 18, 2020
@apparentlymart
Copy link
Contributor

Hi @infa-pavakuma,

This seems to be a feature request for the template provider rather than for Terraform CLI, so there's nothing we could change in this repository to get the result you are requesting.

Normally I'd refer you to the template provider repository, but the team that was maintaining the provider has now archived it to mark it as deprecated. The existing versions of the provider remain available, but my understanding is that the existing functionality is frozen and the team doesn't plan to make any further releases.

The announcement I linked above about the provider being archived includes a link to the hashicorp/dir/template module as the suggested replacement for template_dir. That replacement module renders templates in memory rather than on disk, so using it might address the concern you raised here about the results not being visible in the plan output, depending on how you use the rendered template.

We use the issues in this repository to represent bugs and enhancement requests in the main Terraform CLI releases, so I'm going to close this issue. If you have further questions about using the hashicorp/template/dir module then I'd suggest starting a new topic in the community forum, which is a good place for general Terraform questions and concerns. Thanks!

@ghost
Copy link

ghost commented Dec 21, 2020

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 as resolved and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants