Automate the script execution via EventBridge
To automate the importing of IOCs from Infoblox an EventBridge can be used. This allows for the ingestion of IOCs from Infoblox via the Python script to occur on a schedule. To configure an Amazon EventBridge, perform the following steps:
Input Lambda into the search bar located at the top of the AWS interface.
Locate and click on Lambda to navigate to the Lambda page.
Locate and click the Lambda function that was created in the previous section.
In the Function overview panel of the function’s page, click the Add trigger button
On the Add trigger page, perform the following steps:
Select EventBridge from the Select a trigger drop-down menu located in the Trigger configuration panel
Under the Rule header, click the Create a new rule bubble.
Give the Rule a name.
(Optional) If desired, give the rule a description.
Under the Rule type header, click the Schedule expression bubble.
In the Schedule expression text panel, input a Cron or Rate expression. Note, for more information about the accepted input types, see the AWS documentation here.
Click Add to confirm the addition of the trigger.