Nested Variables like this example?

Hello,
is there any way to do something similar to this in terraform?
If yes can anyone tell me how?

#define basic variables
LOCATION='westeurope'
LOCATION_SHORT='weu'
WORKLOAD='fw'
ENVIRONMENT='prod'
INSTANCE='001'


#putting variables together
RG_NAME_VNET=$(echo rg-vnet-$WORKLOAD-$ENVIRONMENT-$LOCATION_SHORT-$INSTANCE)
VNET_NAME=$(echo vnet-$WORKLOAD-$ENVIRONMENT-$LOCATION_SHORT-$INSTANCE)
DDOS_NAME=$(echo ddos-$WORKLOAD-$ENVIRONMENT-$LOCATION_SHORT-$INSTANCE)


#output:
admin@Azure:~$ echo $RG_NAME_VNET
rg-vnet-fw-prod-weu-001
admin@Azure:~$ echo $VNET_NAME
vnet-fw-prod-weu-001
admin@Azure:~$ echo $DDOS_NAME
ddos-fw-prod-weu-001