hey guys, is it possible to let serverless functio...
# prisma-whats-new
r
hey guys, is it possible to let serverless functions use external files? Like say an apple p8 certificate for push notifications? Im talking about graphcool framework
m
not sure @rein you might have to grab it off an S3 bucket
r
how does one go about doing that 🙂
m
I imagine by using the
aws-sdk
and doing a getObject on S3
...
but you might have to grab it off S3 every time the function runs....not ideal
@rein
r
yeah I was coming to the same conclusion
too bad I cannot just add it
m
is it a string?
if you open it, could you copy it directly into your FaaS?
r
it is a string but I think the package I use for push notifications does expect a p8 file
but yep, its just a string stored in there
{Buffer|String} The filename of the provider token key (as supplied by Apple) to load from disk, or a Buffer/String containing the key data.
thats what it says
but not sure what is meant with Buffer|String
m
ooo you could send it over via buffer
I need to go so good luck! 🙂