Terraform: trim* functions are not available in 0.12.16

Created on 19 Nov 2019  ·  6Comments  ·  Source: hashicorp/terraform

Terraform Version

v0.12.16

Terraform Configuration Files

resource "helm_release" "es_kibana" {
  chart     = "elastic/kibana"
  name      = "es"
  namespace = kubernetes_namespace.elasticsearch.metadata[0].name
  version   = local.es_version
  values = [templatefile("${local.helm_values_prefix}/es-kibana.yml", {
    dns_host : trimsuffix(var.dns_zone.dns_name, ".")
  })]

  depends_on = [helm_release.es_data]
}

Expected Behavior

according to release and docs trim* functions should be available in 0.12.16

Actual Behavior

Error: Call to unknown function

  on modules/elasticsearch/main.tf line 37, in resource "helm_release" "es_kibana":
  37:     dns_host : trimsuffix(var.dns_zone.dns_name, ".")

There is no function named "trimsuffix".
bug v0.12

Most helpful comment

All 6 comments

Glad to see this has been fixed, any idea when we might see a release with it?

The release tag page still mentions this for 0.12.16: https://github.com/hashicorp/terraform/releases/tag/v0.12.16

@StefanSchoof Thanks for that, I've updated that release info (although the CHANGELOG for the tagged release will remain unchanged because of git tagging).

@jlarocque88 It will go out with the next release (0.12.17).

What a blunder! 😂

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.

Was this page helpful?
0 / 5 - 0 ratings