I don't know GCP well but it looks like the GCP CloudFunctions and AWS Lambdas are similarly related. They'll have a limited run time since they're meant for small tasks. Thus they probably won't be able to run NestJS, however, from the way the GCP API's are written, you could maybe integrate a Gateway API endpoint to a GCP CloudFunction.
Sorry I'm not much help because I don't really use GCP.
m
millions-branch-13617
05/04/2022, 10:16 PM
hmm ok yeah maybe NestJS isn’t the best choice. I guess my question is more around how to separate the infrastructure (pulumi) code and the app code.
I have just seen there are 2 types of gcp function types : Function and HttpCallbackFunction.
With HttpCallbackFunction Pulumi provides a callback to handle the logic. With Function you can specify an entryPoint.
I’m wondering what the best one to use is and can I use HttpCallbackFunction and reference a Express app from another file
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.