-
Notifications
You must be signed in to change notification settings - Fork 16
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
First attempt to replace template_file #82
Conversation
We are using template_file here intentionally because it actually templates strings, not files. There is no replacement in terraform, currently, for the string templating feature of this data source... |
Unfortunately template_file is deprecated in favor of the templatefile function. Our hand is being pushed.
Kevin
…Sent from my iPhone
On Jun 15, 2022, at 7:56 AM, Loren Gordon ***@***.***> wrote:
We are using template_file here intentionally because it actually templates strings, not files. There is no replacement in terraform, currently, for the string templating feature of this data source...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Long and I discussed the following options for replacing the deprecated template_file data resource:
|
I'm a tad surprised this worked at all. I'd be interested to see the code.
The downside of this one is that we would not be able to call this module directly as the source in the terragrunt config, and let this module fill in the region, account id, and partition. Instead, we would just about always need to wrap the module call in a main.tf that uses the data sources to lookup the account id, region, and partition, in order to construct valid values. It works, it's just an annoying amount of boilerplate for every implementation. Option 5 is to leave it as it is for now, unless something is actually not working. While deprecated, Hashicorp has stated this means the provider will remain available, but that it simply will not be not receiving updates.
There has been a lot of discussion on how to support template strings as input variables, which we may eventually be able to use here:
|
I'll schedule a meeting for when you return Loren so you, Long, and I can discuss the way ahead on this one. |
Closing for now. Will readdress later. |
No description provided.