I currently have the following in my serverless.yml
file which has been working just fine:
custom:
webpack: ${file(../../../shared/services/webpack.config.yml)}
But after upgrading Serverless version to 2.28.0
, I now see the following deprecation warning:
Serverless: Deprecation warning: Variables resolver reports following resolution errors:
- Cannot resolve variable at "custom.webpack": Cannot load file from outside of service folder
Is this a new deliberate limitation of not being able to reference configuration files from ancestor directories, since I use that to share configuration between multiple serverless files in different code directory branches like the following:
aggregates
- aggregate-A
- libraries
- ...
- services
- service-A1
- serverless.yml
- aggregate-B
- libraries
- ...
- services
- service-B1
- serverless.yml
shared
- services
- webpack.config.yml
This allows me to group services by aggregate, but also have cross-cutting concerns outside that hierarchy.
Is this layout going to be broken in the future, or is there some way of still supporting this and removing the deprecation warning?