Getting below error while trying to execute custom dataflow template using Google Cloud function.
Error:"problem running dataflow template, error was: { Error: A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified. Could not refresh access token".
I have tried supplying all the required permissions and scopes.Could someone please suggest a resolution.
The google-cloud node library does not yet support the Dataflow API, so the current way to use that API is the googleapis library.
Following the instructions there, I've tried to launch a Dataflow job with a Google-provided template using an HTTP-triggered function, and had no issues: