https://pulumi.com logo
Title
m

melodic-lion-63741

03/17/2023, 2:40 PM
Hi all, relatively new to Pulumi but have been doing IaC with Terraform/Terragrunt for a while. I have a question about inputs/outputs across packages/projects. A concrete example: We have an IaC package in a monorepo where we define a VPC. We wish to use the VPC id in the (TypeScript) configuration of a serverless framework package. Previously we did this by putting the VPC id in an AWS secret and importing it in the serverless config, but I was curious to hear if there are alternatives with Pulumi? I have been browsing the docs, but I have not come across anything similar
b

billowy-army-68599

03/17/2023, 2:43 PM
if you intend to keep using serverless to deply the functions, that would work fine. If you want to deploy the functions with pulumi, you could use a stack reference
m

melodic-lion-63741

03/17/2023, 2:46 PM
I've looked into Pulumi for the function deployment, but it seems more pain than it is worth (with the packaging, tree shaking, layers, ...) - similar to why we don't use Terraform for lambdas