ar90n / serverless-s3-local

Serverless s3 local plugin.
MIT License
215 stars 70 forks source link

TypeError: bucketName.charAt is not a function #948

Open itsmepetrov opened 1 month ago

itsmepetrov commented 1 month ago

In our project we specify buckets via Ref:

events:
  - s3:
      existing: true
      bucket: !Ref IndexBucket
      rules:
        - prefix: data/batch/

unfortunately it breaks getResourceForBucket function:

error - unhandledRejection: TypeError: bucketName.charAt is not a function
    at ServerlessS3Local.getResourceForBucket (.../node_modules/serverless-s3-local/index.js:509:8)

I've created PR that resoles the issue: #947