Possible to specify events for specific environment only for AWS Lambda?

    events:
      - schedule: cron(0 02 * * ? *) # Timezone: UTC

I want to set a reoccurring event but only in Production environment. Is that possible to configure int eh Serverless.yaml?

You can take a look on the serverless-plugin-ifelse

custom:
  myStage: ${opt:stage, self:provider.stage}
  serverlessIfElse:
        # Deploy schedule only in production env
        - If: '"${self:custom.myStage}" != "production"'
          Exclude:
            - functions.yourfunction.events.0.schedule