-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Promise Based cloud.HttpServer #631
Comments
Very interesting! Left some feedback on the PR. Would also need to test this and validate it works for Azure as well. Thanks! |
Awesome I'll go through and clean things up. What's the best way to go about verifying things work properly on multiple clouds? Any specific test harnesses or anything that I should look at or additional tests I can add? |
Please forgive me if I am off-topic. I would appreciate it if you could point me in the right direction. I am using Nest.js for about 2 years now. It gives me a very nice developer experience. I am also reading and playing with Terraform and Pulumi for a couple of months and it looks like a great technology. I would love to see both those technologies combine to give developers who are interested in it some more responsibility on cloud infrastructure with the easiest most smooth experience possible. regardless of cloud provider, I read about some libraries that enable the publishing of your application in the form of a dockerized container but I am wondering if this is also possible for serverless deployment. I read this artivel about deploying a nest.js application as azure function and wondered if it is possible to combine Nest.js+Serverless HTTP functions deployment + Pulumi in a CI/CD setup.. even if it is not possible today I would like to know if you think this might be possible to build some library that will enable this kind of development style :) thanks in advance |
@danielglazer I don't have hands on experience deploying NestJS to Azure functions using Pulumi but I have a fair bit now working with AWS Lamdba in a CI/CD setup. I ultimately moved away from using the |
Hey @CyrusNajmabadi I wanted to continue our discussion from pulumi/pulumi#2031 regarding the possibility for being able to create a cloud.HttpServer from a Promise that will eventually return the http.Server. I might be naive but it seems like this could be supported with minimal code change. I've created a PR that I think will work (only looking at AWS right now, not sure yet how this might impact other Cloud providers).
Let me know what you think about this so far: #630
It just holds on to a single promise instance and so subsequent calls to
.then
just return the already instantiated server.This would allow for integrating with application frameworks like NestJS similar to how it is demonstrated in this issue:
The text was updated successfully, but these errors were encountered: