Amazon EventBridge API Destinations to Freshdesk

EventBridge rule → Connection → API

Create an EventBridge rule and API destination to route events to Freshdesk

This pattern creates an API Destination for the Freshdesk send ticket API. Once deployed, the pattern allows a user to send events easily through Event Bridge to Freshdesk tickets. The pattern creates the following resources: EventBridge bus, EventBridge connection, EventBridge API Destination, EventBridge rule, IAM role, and SQS queue.
The EventBridge rule uses the API Destination and Connection as a target, SQS queue as a DLQ, and the IAM role as its role. To send events go to the bus and send sample events. To send a ticket enter “freshdesktest” for the source, the bus created by the pattern for the Event Bus Name, and any call that follows the format for the create tickets as the detail (https://developers.freshdesk.com/api/#create_ticket).
The following information is needed to use the pattern:
- Freshdesk APIKey: To create the AUTH for the Event Bridge Connection
- Freshdesk Workspace: To construct the API Destination to the user's workspace
The IAM Role created by the pattern only has the permission to allow InvokeApiDestination access to the EventBridge Rule.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-api-destinations

Deploy

cd ./6-freshdesksam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Camilla Somtakoune

Camilla Somtakoune

AWS Solutions Architect