Pass value of different module to variables in List of objects in different module

HI All,

I am trying to pass values like project id’s(created after execution of a module), in a variable in a list of object in another module. Eg.
#creates a value id after execution
module “a”{
name = “test”

module “b”{
loop= [{
x= “1”,
y = <expected value is either name from module “a” or id which gets generated after module “a” execution is complete



tried few combination but not working:

  • < dollar>{}/ < dollar >{}
    Please suggest how this requirement can be achieved