---
title: "Discussion on \"🏇 AWS CDK 101 - 🍭 StateMachine and StepFunctions replacing our SQS based lambda trigger\" | Hashnode"
description: "Discussion on \"🏇 AWS CDK 101 - 🍭 StateMachine and StepFunctions replacing our SQS based lambda trigger\". In this article, let us refactor our previous event rule into a new rule which will invoke a state machine, which will, in turn, invoke our lambda as a step"
url: "https://hashnode.com/posts/aws-cdk-101-statemachine-and-stepfunctions-replacing-our-sqs-based-lambda-trigger/625ab26652fb7bd53380e924"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [🏇 AWS CDK 101 - 🍭 StateMachine and StepFunctions replacing our SQS based lambda trigger](https://blog.exploringserverless.com/aws-cdk-101-statemachine-and-stepfunctions-replacing-our-sqs-based-lambda-trigger?utm_source=hashnode&utm_medium=feed)

In this article, let us refactor our previous event rule into a new rule which will invoke a state machine, which will, in turn, invoke our lambda as a step

Apr 16, 2022 · 9 min read · blog.exploringserverless.com  
Updated Jun 5, 2022  
Read the article

-   [#aws-cdk](https://hashnode.com/tag/aws-cdk)
-   [#dynamodb](https://hashnode.com/tag/dynamodb)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)

## Written by

[Aravind V](https://hashnode.com/@AravindVCyber)

@AravindVCyber · Theni, India

  
[View profile](https://hashnode.com/@AravindVCyber)

Let us build Dev Post!

I am a developer solving engineering challenges with focus towards architecture aspects as well.

## Responses 1

Markdown supported · ⌘↵ to post

[Vince Fulco](https://hashnode.com/@vince-bighire)

[Sep 12, 2022](https://hashnode.com/posts/aws-cdk-101-statemachine-and-stepfunctions-replacing-our-sqs-based-lambda-trigger/625ab26652fb7bd53380e924/comment/631f3a28526d775aa7f653cc)

Awesome example. Would appreciate the code example posted to github for studying.

[Aravind V](https://hashnode.com/@AravindVCyber)

[Sep 13, 2022](https://hashnode.com/posts/aws-cdk-101-statemachine-and-stepfunctions-replacing-our-sqs-based-lambda-trigger/625ab26652fb7bd53380e924/comment/631f3a28526d775aa7f653cc#reply-6320bd86af1ce46dbc544553)

[Vince Fulco](https://hashnode.com/@vince-bighire)Thanks. Will make sure I add them in future posts.
