I saved the service account key to /tmp/key.json, since /tmp is the folder available for AWS lambda, and passed the file name to keyFilename.
Any error messages you're getting
When running locally (dev environment), log works; but after being deployed, logs never received. And I haven't seen any error messages also.
Since I have verified the file /tmp/key.json do exist, so what could be the cause of this issue?
Is it possible to just provide the json content, instead of the file name?
Or is there any other way to send logs to GCP logging from AWS lambda?
What you're trying to do I want to use
@google-cloud/logging-winston
to send logs to GCP logging within AWS lambda.What code you've already tried
I saved the service account key to
/tmp/key.json
, since/tmp
is the folder available for AWS lambda, and passed the file name tokeyFilename
.Any error messages you're getting When running locally (dev environment), log works; but after being deployed, logs never received. And I haven't seen any error messages also. Since I have verified the file /tmp/key.json do exist, so what could be the cause of this issue? Is it possible to just provide the json content, instead of the file name? Or is there any other way to send logs to GCP logging from AWS lambda?