Suppose I'm defined two stacks, A and B.
In stack A, I define a VPC and a subnet and I output that subnet's id
t = Template()
Subnet = t.add_resource(Subnet .....)
SubnetId = t.add_output(Output('SubnetId', Value=Ref(Subnet))
In Stack B, I have these instances that I want to live within the subnet defined in Stack A. How can I achieve that?