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

**URL:** <https://forum.ansible.com/t/now-serving-event-driven-ansible-with-a-dash-of-durability/1323>\
**Category:** Blog\
**Tags:** ansible-rulebook, eda-server, aws, sqs, lambda\
**Created:** [October 3, 2023, 12:11am UTC](https://forum.ansible.com/t/now-serving-event-driven-ansible-with-a-dash-of-durability/1323 "2023-10-03T00:11:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/leo/32/23_2.png) [@Leo](https://forum.ansible.com/u/Leo)\
**Post date:** [October 3, 2023, 12:11am UTC](https://forum.ansible.com/t/now-serving-event-driven-ansible-with-a-dash-of-durability/1323/1 "2023-10-03T00:11:37Z")

</div>

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

October 2, 2023 by [Colin McNaughton](https://www.ansible.com/blog/author/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:**

> **[Now serving: Event-Driven Ansible with a dash of durability](https://www.redhat.com/en/blog/now-serving-event-driven-ansible-with-a-dash-of-durability?sc_cid=7015Y000003t7aWQAQ)**
>
> Learn how to use Event-Driven Ansible with AWS SQS and AWS Lambda to automate actions on your cloud applications and much more.

---

<div class="post-metadata">

**Author:** ![cloin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cloin/32/171_2.png) [@cloin](https://forum.ansible.com/u/cloin)\
**Post date:** [October 3, 2023, 12:12am UTC](https://forum.ansible.com/t/now-serving-event-driven-ansible-with-a-dash-of-durability/1323/2 "2023-10-03T00:12:52Z")

</div>

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

🌟 Highlights:  
❗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.  
❗Durability & Efficiency: By leveraging AWS Lambda and AWS SQS, ensure that messages persist until handled, enhancing the durability and efficacy of event messages.  
❗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.

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

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

> **[Now serving: Event-Driven Ansible with a dash of durability](https://www.redhat.com/en/blog/now-serving-event-driven-ansible-with-a-dash-of-durability?sc_cid=7015Y000003t7aWQAQ)**
>
> Learn how to use Event-Driven Ansible with AWS SQS and AWS Lambda to automate actions on your cloud applications and much more.
