0

I have a pipeline alert set to make a http post call on completion of the pipeline. I need to push a file from GCS bucket to the end point url. Can someone help me how can I achieve this?

aruna j
  • 91
  • 5

1 Answers1

0

For this you can create a Cloud Function [1], and have the code that sends the desired file to the desired endpoint another endpoint.

You could use this code a code sample [2] and modify the last lines instead of downloading the file send it to and endpoint.

I hope this helps, if this solution doesn't suit you are you have more questions just ask and provide a some more context please.

[1] https://cloud.google.com/functions/docs/calling/http [2] https://cloud.google.com/storage/docs/downloading-objects#code-samples

Jaime Lopez
  • 113
  • 4
  • To extend to this answer to clarify how to use this, to trigger the HTTP trigger in [1] using any of the methods shown there, it would be a good idea to send an HTTP request in the final step of the Data Fusion pipeline. – bernatj Sep 24 '21 at 14:11