Challenge 1: Automatic triggers

Next Challenge

Introduction

This challenge is all about configuring the pre-requisites for the system we’re building.

Description

Create two Cloud Storage Buckets, one for uploading documents and another one for staging. You can choose any name for the first bucket, but call the staging bucket {YOUR PROJECT ID}-staging.

We’ll trigger the summary generation automatically when a document is uploaded to the first Cloud Storage Bucket. We’ve already provided you with a(n incomplete) Cloud Function, make sure that this function is triggered whenever a new document is uploaded to the Cloud Storage Bucket.

Success Criteria

  • There are two Cloud Storage Buckets, one for uploading the documents and another one for staging with the required name.
  • The provided Cloud Function is triggered only when a file is uploaded.
  • No code was modified.

Learning Resources

Tips

  • Check the provided Cloud Function’s configuration to see the details on how it’s being triggered
  • You can test things by uploading a PDF file to the first Cloud Storage Bucket and watching the logs of the Cloud Function

Next Challenge