Closed henhal closed 4 years ago
If using references to other variables within the custom.layerConfig object, they are not resolved when the plugin reads them. The hook used to run the plugin is apparently before any references have been resolved to values.
custom.layerConfig
Example:
custom: stage: ${opt:stage, self:provider.stage} version: ${opt:version, '1-0-0'} id: ${self:custom.stage}-${self:custom.version} layerConfig: installLayers: false exportPrefix: ${self:service}-${self:custom.id}-
This will not properly resolve the exportPrefix using the actual value of self:service etc.
exportPrefix
self:service
Kudos to Robert Etcheverry for reporting this.
If using references to other variables within the
custom.layerConfig
object, they are not resolved when the plugin reads them. The hook used to run the plugin is apparently before any references have been resolved to values.Example:
This will not properly resolve the
exportPrefix
using the actual value ofself:service
etc.Kudos to Robert Etcheverry for reporting this.