https://pulumi.com logo
b

bulky-businessperson-73745

11/04/2019, 5:18 PM
Pretty new to both gcp and pulumi (coming from an aws/serverless framework background fwiw). It looks like the
HttpCallbackFunction
is meant to serve as an abstraction over the regular
gcp.cloudfunctions.Function
resource. Am I correct in assuming that only the latter allows for customization of the node runtime, available memory, etc.?
t

tall-librarian-49374

11/04/2019, 7:18 PM
The memory is configurable with
availableMemoryMb
. The runtime is fixed to node js because that's what you write your callback for.
b

bulky-businessperson-73745

11/04/2019, 10:32 PM
i’m not seeing any option for setting memory in
HttpCallbackFunction
, just regular function. by runtime i mean node 10 vs 8
Copy code
new gcp.cloudfunctions.HttpCallbackFunction("f", {
    availableMemoryMb: 128,
    callback: work,
});
Good point about the runtime. I'd appreciate if you could file an issue.
b

bulky-businessperson-73745

11/05/2019, 5:51 PM
thanks! will do!