Open atavakoliyext opened 5 years ago
Thank you for your continued interest in this issue.
Terraform version 1.8 launches with support of provider-defined functions. It is now possible to implement your own functions! We would love to see this implemented as a provider-defined function.
Please see the provider-defined functions documentation to learn how to implement functions in your providers. If you are new to provider development, learn how to create a new provider with the Terraform Plugin Framework. If you have any questions, please visit the Terraform Plugin Development category in our official forum.
We hope this feature unblocks future function development and provides more flexibility for the Terraform community. Thank you for your continued support of Terraform!
Current Terraform Version
Use-cases
There are no new use-cases enabled by my request; this is just syntactic sugar to make map lookups consistent with how lookups are done for the other container types.
Attempted Solutions
Proposal
Please allow me to do this, which is syntactic sugar for the above:
(maybe there can also be a
containsvalue(my_map, <some value>)
to complement this?)