How to skip eventbridge trigger rules from a lambda function when deploying

My lambda is triggered by user setting.
So I’ve tested to see whether the setting was maintained or not by following steps but configured schedule is just removed after deploying.
Is there any way to maintain configured schedule after deploying?

  1. define a lambda in serverless.yml as following
TestLambda:
    handler: lambda.handler
    name: test-lambda
  1. set up a rule to run an TestLambda on a schedule by AWS console.(using a cron expression)
  2. deploy serverless.yml