You'll need to provide various parameters as stack references / config values, probably. I do that across 2 projects using stack references and it works fine:
1. up the first project which uses a stack reference from the second project (which doesn't exist, so it returns undefined), and export a value,
2. up the 2nd project that uses that exported value via stack reference, and exports the value mentioned in point 1,
3. up the 1st project, which gets the value from point 2, and updates its resource.