Rancher provider: Use parameters in values.yaml for app

I use the rancher tf provider to install rancher2_app_v2. One of the parameters is a values file (yaml) to be provided. Is it possible to use parameters in this file or does it have to be pure yaml? If pure yaml, how could I use tf variables for certain values of this file?

So I have this app


resource "rancher2_app_v2" "monitoring" {
  cluster_id = rancher2_cluster.cluster.id
  name = "rancher-monitoring"
  namespace = "cattle-monitoring-system"
  repo_name = "rancher-charts"
  chart_name = "rancher-monitoring"
  chart_version = "100.1.2+up19.0.3"
  values = file("monitoring/values.yaml")
}

Whereas the values.yaml contains something like this

alertmanager:
  alertmanagerSpec:
    configSecret: alertmanager-rancher-monitoring-alertmanager
    logLevel: info
    nodeSelector: {}
    resources:
      limits:
        cpu: ${var.alertmanager_cpu_limit}
....

Whereas ${var.alertmanager_cpu_limit} should be resolved to `1000Mi? This way at least it does not seem to work, if I check the plan

  # rancher2_app_v2.monitoring will be updated in-place
  ~ resource "rancher2_app_v2" "monitoring" {
        id                          = "c-xxxxx.cattle-monitoring-system/rancher-monitoring"
        name                        = "rancher-monitoring"
      ~ values                      = <<-EOT
            alertmanager:
              alertmanagerSpec:
                configSecret: alertmanager-rancher-monitoring-alertmanager
                logLevel: info
                nodeSelector: {}
                resources:
                  limits:
          -         cpu: 1000m
          +         cpu: ${var.alertmanager_cpu_limit}