On a serverless project I get the following deprecation warning :
Serverless: Deprecation warning: Starting from next major object notation for "service" property will no longer be recognized. Set "service" property directly with service name. More Info: https://www.serverless.com/framework/docs/deprecations/#SERVICE_OBJECT_NOTATION
My Yaml is :
service:
name: nest
custom:
version: ${self:service.name}-redDragon
How can I fix this deprecation warning ?
you can fix it by setting the name of the service directly to service
property like this
service: nest
custom:
version: ${self:service.name}-redDragon