Now serving: Event-Driven Ansible with a dash of durability

Now serving: Event-Driven Ansible with a dash of durability

October 2, 2023 by Colin McNaughton

In the realm of automation, the ability to respond to events in real-time is a game-changer. At Red Hat, we’ve been pioneering in this space with Event-Driven Ansible, which can consume messages from various sources like AWS Simple Queue Service (SQS), Azure Service Bus, and Kafka to trigger automated actions. Today, we’re excited to delve into a powerful integration pattern involving AWS Lambda, AWS SQS, and Event-Driven Ansible.

Imagine this: A SaaS application sends a webhook POST request. This request triggers a Lambda function, which validates an API key or other payload data, filters the payload, and sends a message to SQS. Event-Driven Ansible subscribes to the queue, consumes the message and triggers an automated action. Let’s explore this workflow in detail. [ … ]


You are welcome to comment on the topic here and keep reading the article in the Ansible blog below:

3 Likes

This blog explores the idea of using the messaging layer to send events to Event-Driven Ansible.

:star2: Highlights:
:exclamation:Event-Driven Ansible: An additional capability of the Ansible Automation Platform that is able to consume messages from various sources like AWS SQS, Azure Service Bus, and Kafka to trigger instantaneous automated actions.
:exclamation:Durability & Efficiency: By leveraging AWS Lambda and AWS SQS, ensure that messages persist until handled, enhancing the durability and efficacy of event messages.
:exclamation:Control: AWS Lambda acts as a secure gateway, validating API keys and filtering payloads, enabling precise control over the data that reaches Event-Driven Ansible.

:bulb: What You’ll Discover:
:exclamation:A dynamic workflow integrating AWS Lambda + SQS and Event-Driven Ansible.
:exclamation:How to implement a webhook receiver using Python as a Lambda function.
:exclamation:Valuable insights into validating and filtering payloads with AWS Lambda.
:exclamation:The remarkable benefits of combining webhook events with the durability of event messages, ensuring seamless and responsive automation.

:arrows_counterclockwise: Benefits:
:exclamation:Responsiveness: React to events from SaaS applications in real-time.
:exclamation:Streamlined Processes: Improve efficiency by automating actions based on incoming events.
:exclamation:Flexibility: Adapt and refine your implementations, with examples and insights available on GitHub.

3 Likes