File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ module "eventbridge_with_permissions" {
173173}
174174```
175175
176- ### EventBridge with lambda rule schedule
176+ ### EventBridge with schedule rule and Lambda target
177177
178178``` hcl
179179module "eventbridge" {
@@ -200,6 +200,36 @@ module "eventbridge" {
200200}
201201```
202202
203+ ### EventBridge with schedule rule and Step Functions target
204+
205+ ``` hcl
206+ module "eventbridge" {
207+ source = "terraform-aws-modules/eventbridge/aws"
208+
209+ create_bus = false
210+
211+ rules = {
212+ crons = {
213+ description = "Run state machine everyday 10:00 UTC"
214+ schedule_expression = "cron(0 10 * * ? *)"
215+ }
216+ }
217+
218+ targets = {
219+ crons = [
220+ {
221+ name = "your-awesome-state-machine"
222+ arn = "arn:aws:states:us-east-1:123456789012:stateMachine:your-awesome-state-machine"
223+ attach_role_arn = true
224+ }
225+ ]
226+ }
227+
228+ sfn_target_arns = ["arn:aws:states:us-east-1:123456789012:stateMachine:your-awesome-state-machine"]
229+ attach_sfn_policy = true
230+ }
231+ ```
232+
203233### EventBridge API Destination
204234
205235``` hcl
You can’t perform that action at this time.
0 commit comments