01/31/2020, 5:57 PM
I'm trying to separate out some projects into separate code bases for simplicity. I wanted to do a base project to deploy some infrastructure, and then use other projects for specific things like a lambda that's deployed to a VPC in the base project. I've done stackReferences before, for basic things like an arn, but can I go deeper? Like can I export the VPC object and then reference it as a Vpc object in another project? something like
const vpc: aws.ec2.Vpc = apiStack.requireOutput("sharedServicesVpc");
tosses a type error.