-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: Remove dependency on deprecated hashicorp/template
provider
#1297
Conversation
hashicorp/template is deprecated, and the templatefile function should be used instead.
This break some use cases. For the record, see hashicorp/terraform#24978 |
@dmsalomon Thanks for working on this. Can you please upgrade your branch ? |
@barryib Thanks for taking a look at this, I just upgraded the branch. |
hashicorp/template
provider
Thanks @dmsalomon for your contribution. |
This now shipped in v16.0.0 |
…erraform-aws-modules#1297) BREAKING CHANGES: We remove the dependency on the deprecated `hashicorp/template` provider and use the Terraform built in `templatefile` function. This will broke some workflows due to previously being able to pass in the raw contents of a template file for processing. The `templatefile` function requires a template file that exists before running a plan.
…erraform-aws-modules#1297) BREAKING CHANGES: We remove the dependency on the deprecated `hashicorp/template` provider and use the Terraform built in `templatefile` function. This will broke some workflows due to previously being able to pass in the raw contents of a template file for processing. The `templatefile` function requires a template file that exists before running a plan.
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
hashicorp/template is deprecated, and the templatefile function should be used instead. In particular, this is problem on new Apple silicon Macs, since the hashicorp/template provider is not implemented (and I don't ever will be) for darwin_arm64.
Resolves #1294
I have replaced the "template_file" data sources with local variables that store the outputs to function calls using
template
. There is actually very little that has changed since the resource arguments map cleanly to the function arguments. I had to use an explicit for loop to render the templates for every node, instead of using thecount
meta-argument.I'm relatively new to Terraform, so all critiques are appreciated.
Checklist