Is cross-stack referencing possible?

I am using CDK for Terraform (cdktf) and Python to build AWS resources.

According to the requirements of my work, the structure of my project includes

main.py,
vpc.py,
s3.py,
ec2.py,

and so on, where different parts are defined in different stacks in separate files and are finally implemented together in main.py.

I’m using s3 as backend.

In this case, how can I reference the resource IDs from other files (stacks)? For example, how can I reference the VPC and subnet IDs in ec2.py from vpc.py?

I would be very grateful for a reply!