---
title: "Discussion on \"How to use Terraform to define cloud watch event rules to trigger the Stepfunction state machine\" | Hashnode"
description: "Discussion on \"How to use Terraform to define cloud watch event rules to trigger the Stepfunction state machine\". For this, we have to do the following Terraform Configuration:\n\nDefine the rule for the CloudWatch event:\n resource \"aws_cloudwatch_event_rule\" \"example\" {\n   name        = \"trigger-stepfunction\"\n   description = \"Rule to trigger Step Functions state..."
url: "https://hashnode.com/posts/how-to-use-terraform-to-define-cloud-watch-event-rules-to-trigger-the-stepfunction-state-machine/677e07772352b3fad94b490d"
---

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

Discussion

# [How to use Terraform to define cloud watch event rules to trigger the Stepfunction state machine](https://bhagu.hashnode.dev/how-to-use-terraform-to-define-cloud-watch-event-rules-to-trigger-the-stepfunction-state-machine?utm_source=hashnode&utm_medium=feed)

For this, we have to do the following Terraform Configuration: Define the rule for the CloudWatch event: resource "aws\_cloudwatch\_event\_rule" "example" { name = "trigger-stepfunction" description = "Rule to trigger Step Functions state...

Jan 8, 2025 · 1 min read · bhagu.hashnode.dev  
Read the article

## Written by

[Bhargavi Dave](https://hashnode.com/@Bhargavi18)

@Bhargavi18

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
