https://pulumi.com logo
s

stale-knife-36790

04/02/2020, 12:13 PM
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

stale-knife-36790

04/03/2020, 10:33 AM
@white-balloon-205 Awesome, thanks! Does this also work for AWS (and Azure)?
c

clean-eve-27532

04/03/2020, 11:14 AM
Can confirm it works with Azure, just moved our functions from ArchiveFunctionApp to MultiFunctionApp
s

stale-knife-36790

04/06/2020, 7:36 AM
@white-balloon-205 @clean-eve-27532 does it work with AWS as well? 🤔
c

clean-eve-27532

04/06/2020, 7:47 AM
Haven't tried it but don't see why it wouldnt
w

white-balloon-205

04/07/2020, 2:57 AM
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.