lambda

AWS Security Automation with Lambda

AWS Security Automation with Lambda

As organizations increasingly migrate to the cloud, the need for effective security measures becomes paramount. With the rise of cyber threats and the complexity of managing cloud environments, security automation has emerged as a critical strategy. AWS Lambda, a serverless compute service, offers a powerful solution for automating security tasks and enhancing the security posture of applications deployed on Amazon Web Services (AWS). This article explores how AWS Lambda can be leveraged for security automation, its benefits, use cases, and best practices and also an intriguing real-world scenario from Our Anonymous AWS Security Specialist on “The Rise of the Automated…
Read More
How to invoke a lambda function from your database

How to invoke a lambda function from your database

AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers. It automatically scales your applications in response to incoming requests. Often, you want to trigger an AWS Lambda function when a database row changes. For example, you may want to trigger a function as a side-effect of a database change, or fan out work to multiple services. In this guide, you will learn how to setup Sequin to trigger an AWS Lambda function when a database row changes. Prerequisites You are about to create a simple AWS Lambda function that logs a message…
Read More
Execute Lambda triggered by DB record updates

Execute Lambda triggered by DB record updates

What architecture would you use if you wanted to synchronize data across multiple subsystems? Importantly, since transactions are not available, the SQL issuer must take care to ensure that data consistency is maintained. For example, if SQL execution is performed by Lambda, it is necessary to write to database A and database B respectively, but the application logic tends to become complex when updating multiple records. Therefore, Trigger an AWS Lambda function from Amazon RDS for MySQL or Amazon RDS for MariaDB using audit logs and Amazon CloudWatch architecture. With this method, Lambda is triggered by actual writes using audit…
Read More
Preventing Multiple Processing of SQS Messages

Preventing Multiple Processing of SQS Messages

Introduction Amazon SQS (Simple Queue Service) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. AWS Lambda can process messages from an SQS queue, making it a powerful combination for event-driven applications. Scenario Imagine an AWS architecure like this: Imagine a scenario where your Lambda function fails to tag an SQS message as successfully processed. By default, Lambda retries the message up to 4 times before ignoring it. This retry behavior can lead to exponential execution of your handler: First Lambda: Retries 4 times, potentially sending 4 messages to…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.