Interpolated variable within variable

11/20/2018

Quick one.. I'm working on a TF file for Google Cloud Kubernetes Engine.

Anyone know how I can pass the following:

pd_name = "${google_compute_disk.${var.app_name}.name}"

Trying to feed an interpolated variable into another variable. I didn't think it would would when I was writing it.

Any ideas?

Thanks Jon

-- jonnybinthemix
google-cloud-platform
kubernetes
terraform
variables

0 Answers