diff --git a/modules/subscriber/scheduler.tf b/modules/subscriber/scheduler.tf index 9f71745..023ac59 100644 --- a/modules/subscriber/scheduler.tf +++ b/modules/subscriber/scheduler.tf @@ -19,4 +19,10 @@ resource "aws_scheduler_schedule" "discovery_schedule" { } }) } + + lifecycle { + replace_triggered_by = [ + aws_lambda_function.subscriber, + ] + } }