Terraform 1.1.0 will include a new function,
type(), which is only available from the Terraform console (not in configuration). This function prints the type of a given expression.
The usual caveats apply: this is an alpha release, not supported for production use. Instead, please try out the builds in isolated test environments.
We’d love to hear any feedback on this function! Feel free to leave any thoughts and ideas here. If you come across any bugs, please open a Github issue.
Kristin Laemmert, Terraform Core