How to use @google-cloud/logging-winston within AWS lambda? #797
Labels
api: logging
Issues related to the googleapis/nodejs-logging-winston API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
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
.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?
The text was updated successfully, but these errors were encountered: