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

**URL:** <https://discuss.hashicorp.com/t/pass-value-of-different-module-to-variables-in-list-of-objects-in-different-module/44689>\
**Category:** Terraform\
**Created:** [September 23, 2022, 6:19am UTC](https://discuss.hashicorp.com/t/pass-value-of-different-module-to-variables-in-list-of-objects-in-different-module/44689 "2022-09-23T06:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapneil](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/swapneil/32/30921_2.png) [@swapneil](https://discuss.hashicorp.com/u/swapneil)\
**Post date:** [September 23, 2022, 6:19am UTC](https://discuss.hashicorp.com/t/pass-value-of-different-module-to-variables-in-list-of-objects-in-different-module/44689/1 "2022-09-23T06:19:54Z")

</div>

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:

- module.a.id/module.a.name
- \< dollar\>{module.a.id}/ \< dollar \>{module.a.name}  
Please suggest how this requirement can be achieved
