I am completely new to terraform.
I have a tag line which picks project name of my current gcp project which am working.
tags= [data.google_project.project.name]
I need to pass that project name output given by tags block to my substr function to extract first 4 digits of project name.
value = “$(substr(var.tags,0,3))”
I need the output of substr funtion to save in a variable