This is what I am currently trying (but that doesn...
# general
s
This is what I am currently trying (but that doesn't seem to work as expected)
Copy code
const greeting = new gcp.cloudfunctions.HttpCallbackFunction("greeting", ((req, res) => {
    try {
        app.get('/', async (req, res) => {
            res.send(JsonData);
        });
    } catch (err) {

    }
}));
s
@white-balloon-205 Awesome, thanks! Does this also work for AWS (and Azure)?
c
Can confirm it works with Azure, just moved our functions from ArchiveFunctionApp to MultiFunctionApp
s
@white-balloon-205 @clean-eve-27532 does it work with AWS as well? 🤔
c
Haven't tried it but don't see why it wouldnt
w
Yes - wrappers over serverless functions in each cloud platform are available in Pulumi that allow providing either a
callback
or a
callbackFactory
to provide the code to run directly online in your Pulumi program.