Creating a trigger for Object Storage
Triggers is currently at the Preview stage.
Create a trigger for Object Storage that will run your function when you create, move, or delete an object in the bucket.
Before you start
To create a trigger, you need:
- Service account with rights for function call. If you don't have a service account, create one.
- Functions that the trigger will call. If you don't have a function:
Create a trigger
Note
The trigger is initiated within 5 minutes of being created.
To create a trigger:
- Open Cloud Functions in the folder where you want to create a trigger for Object Storage.
- Go to the Triggers tab.
- Click Create trigger.
- Under Basic parameters:
- Enter a name and description for the trigger.
- In the Type field, select Object Storage.
- Under Object Storage settings:
- Under Repeat request settings:
- In the Interval field, specify 5 seconds.
- In the Message batch size field, enter 5.
- Under Function settings:
- Select the function for the trigger to call.
- Specify the function version tag.
- Specify the service account that will be used to call the function.
- Click Create trigger.
What's next
- Read about the concept of trigger.
- Read more about the trigger for Object Storage.
- For information about what you can do with triggers, see our step-by-step instructions.