Hi! Is it possible to run my Google Cloud Function...
# general
a
Hi! Is it possible to run my Google Cloud Function on my computer after building it? Like using the functions-framework program or something? It doesn't look like
pants run
can operate on a gcf target.
h
Pants currently has no ability to run cloud functions locally via a framework, but that would be a neat feature to add.
The output file in
dist/
should be manually runnable via such a framework though, since it’s just a regular cloud function at that point, but I have no experience with it.
@broad-processor-92400 thoughts?
b
Yeah, I'd expect and generally defer to using whatever "normal" tooling exists for taking the artifact and running locally. I'm not familiar with the details of GCP, but for AWS/Lambda that'd might mean things like localstack.
a
Got it