Events
Events can be defined as things happening in or outside the GCP environment. When they occur, you might want certain actions to be triggered. An example of an event might be a file that's been added to Cloud Storage, a change that was made to your database table, or a new resource that has been provisioned to GCP, to name a few. These events can come from one of the following providers:
- HTTP
- Cloud Storage
- Cloud Pub/Sub
- Cloud Logging via Pub/Sub sink
- Cloud Firestore
- Firebase Realtime Database, Storage, and Authentication
If you create a sink to forward the logs to Pub/Sub, then you can trigger Cloud Functions (for more details, check out Chapter 17, Monitoring Your Infrastructure).
Next, let's look at triggers.