I am trying to let serverless create a bucket with a lambda function that listens to a Bucket event. So following the docs i have this function block in my serverless.yml
When i now try to deploy, i always get “The “options” or “port” or “path” argument must be specified” as error message.
Where do i need to add what arguement?
EDIT: I’m using Framework Version: 2.30.3
am also getting this error with a serverless deploy.
The issue occurs when I am using an exported https_proxy. Without the proxy, everything works fine.
Using Framework version 2.30.3.
useDotEnv variable within serverless.yml is set to
true in my case.
Think I found the root cause.
Workaround: pin the serverless version to
With latest releases a new file lib/aws/request.js
Inside those changes
URL is used not url anymore.
url.parse command returned an object with a
path property. the
URL object does not have the
Was not able to proove that yet.
@Lars1 my issue was related with setting
The bug was introduced to the
serverless framework with version
There was a PR 9147 which should solve that issue. It is merged to master but not included into a new release (think it will be part of
Am not sure if that problem is also related to your case. If you use a proxy, then downgrading to
2.29.* should solve your issue (or wait until the hotfix is added into a new release).
That was exactly our problem. We pinned the version to 2.29.0 and are waiting for a new version to be released.