Shellscript variable to another resource in terraform

Hi All, We are planning to create a terraform resource for creating private hosted Zone and associate a load balancer to the private hosted zone but to get the load balancer name we have to run a shell script. Is there a way I can pass the output of the shell script as a variable to the private hosted zone resource.

Try to use a data source to get the value.

We store our terraform outputs in consul and the use the consul terraform resource to read it in other terraform runs :slight_smile: