Add azure events trigger type
Description
Add a new type of trigger mechanism that is an Azure webhook-triggered event
Further details
A new type of event trigger should be created that allows FaaS functions to be triggered from Azure events.
If this event trigger type is configured a "service principal" GUID that will be authenticated to make the webhook calls must also be provided.
When this event trigger type is configured the module should deploy:
- The required resources for all FaaS including:
- The FaaS function itself
- The triggering PubSub topic and subscription
- An event bridge service
- Configured with any required values for authentication
- Configured with the triggering PubSub topic to write events to
The module should include in it's output variables the webhook-able endpoint exposed by event bridge service.
The module should also configure alerts for
- uptime of the event bridge service
- 5XX responses sent by the service
- Logs for authentication failure of service principal GUID
The module is not responsible for providing any Azure resources, only exposing a usable webhook endpoint from the GCP environment.
Task list
- Update module to configure this event trigger type
- Deploy to the dev environment for testing
- Ensure webhook service tested against an Azure event grid in the
uniofcamdevAzure tenancy (re-using resources created in #16 (closed))
Acceptance criteria
-
Module updated to allow for Azure webhook compatible endpoint as the trigger mechanism for ucam-faas