Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Error using timezone #34

@herrsergio

Description

@herrsergio

I have the following event:

 service: myservice

 plugins:
   - serverless-python-requirements
   - serverless-local-schedule
 provider:
     name: aws
     runtime: python3.9

     stage: dev
     region: us-east-1

 functions:
     ecobiciStatus:
         handler: myservice
         events:
             - schedule:
                 rate:
                   - cron(25 6-23 * * ? *)
                   - cron(5 5 * * ? *)
                   - cron(25 0 * * ? *)
                 timezone: America/Mexico_City

While trying to deploy I get the following error message:

$ sls deploy       
                                                                                                                                             ─╯
Running "serverless" from node_modules
Environment: darwin, node 20.2.0, framework 3.31.0 (local) 3.31.0v (global), plugin 6.2.3, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Property 'functions[].events[].schedule.timezone' already have a definition - this property might have already been defined by the Serverless framework or one other plugin

It was working a couple of months ago, maybe an update introduced this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions