无服务器 provider.environment 变量在自定义中不可用
Serverless provider.environment variables not available in custom
我试图在我的自定义变量块中引用 self:provider.environment
中的变量;但是,我收到以下警告:
Serverless Warning --------------------------------------
A valid service attribute to satisfy the declaration
'self:provider.environment.myVar' could not be found.
我们正在使用无服务器 1.28.0,这是一个示例配置:
service: testing-vars
provider:
region: 'us-west-2'
environment:
myVar: ${env:myVar, self:custom.dotenv.myVar}
custom:
refToAbove: ${self:provider.environment.myVar}
...
我想在我的自定义块中引用 provider.environment 变量。
这是由于插件未正确处理变量造成的,现已修复。
我试图在我的自定义变量块中引用 self:provider.environment
中的变量;但是,我收到以下警告:
Serverless Warning --------------------------------------
A valid service attribute to satisfy the declaration
'self:provider.environment.myVar' could not be found.
我们正在使用无服务器 1.28.0,这是一个示例配置:
service: testing-vars
provider:
region: 'us-west-2'
environment:
myVar: ${env:myVar, self:custom.dotenv.myVar}
custom:
refToAbove: ${self:provider.environment.myVar}
...
我想在我的自定义块中引用 provider.environment 变量。
这是由于插件未正确处理变量造成的,现已修复。