Setting up an EventBridge integration
Last updated
Was this helpful?
Last updated
Was this helpful?
Log in to the .
Open Amazon SQS
from the Services dropdown or the Services search bar at the top of the page.
Click Create queue
.
Select Standard queue type.
Give your SQS queue a name, and click Create queue
.
Make note of the ARN of the newly created queue.
Provide them with your AWS Account ID and the AWS region that you would like to set up your EventBridge integration.
Your Rightsline representative will provide you with your AWS EventBridge event source name. You will use this name to create your AWS EventBridge event bus.
Because the event bus name has to start with aws.partner/rightsline.com/
it cannot be created in the UI. You must create your AWS EventBridge event bus via the AWS CLI. To do so, run the following commands:
At this point the remainder of the setup can continue to be done via the CLI or you can scroll down to see how it can be set up in the Console.
In the above command, replace {{EVENT_SOURCE_NAME}}
with the event source name provided by Rightsline in the above. Replace {{REGION}}
with the desired region provided to Rightsline in the above.
Create an AWS EventBridge Rule (Console)
Once the steps above have been completed to create the event bus via the CLI, the Rule setup can happen in the console as follows:
Open Rules
in the left sidebar menu.
Select your new Event bus from the dropdown, and click Create rule
.
Give your rule a name, and make sure Rule with an event pattern is selected. Click Next
.
Under Event source, select AWS events or EventBridge partner events.
Under Event pattern, select EventBridge partners, and select Rightsline as the partner. For Event type, select All Events. Click Next
.
Add any relevant Tags. Click Next
.
Click Create Rule
.
Once the SQS queue, the Event Bus, and the Event Bus Rule are created, you need to modify the access policy on the SQS queue to allow it to receive messages from your new Event Bus Rule. Navigate to your new SQS queue in the AWS Console, click on Access Policy, then Edit. Your access policy will need to include the following Statement:
In the above Statement, replace {{SQS_QUEUE_ARN}}
with the ARN of the SQS queue, and {{EVENT_BUS_RULE_ARN}}
with the ARN of the Event Bus Rule. This should grant your new Event Bus Rule to forward messages to your SQS queue.
In the above command, replace {{REGION}}
with the desired region provided to Rightsline in the above. The file://rule.json file must exist in the directory you are running the command. The file should look like the following:
In the above command, replace {{EVENT_SOURCE_NAME}}
with the event source name provided by Rightsline in the above.
In the above command, replace {{REGION}}
with the desired region provided to Rightsline in the above. The file://targets.json
file must exist in the directory you are running the command. The file should look like the following:
In the above command, replace {{EVENT_SOURCE_NAME}}
with the event source name provided by Rightsline in the above. Replace {{SQS_QUEUE_ARN}}
with the SQS queue ARN from the above.
Under Target 1, select AWS service, SQS queue, and the queue name created from the . Click Next
.