You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the serverless application offline, I encounter the following error:
Cannot resolve serverless.yml: Variables resolution errored with:
- Cannot resolve variable at "provider.environment.FOO_BAR": Value not found at "self" source
This issue is similar to #1227 (at least with the setup of ENV's), but with a different error message.
This suggests that the issue is specifically related to resolving ${self:provider.stage} when running offline.
Question
How can I resolve this variable resolution error when running the serverless application offline, particularly when using ${self:provider.stage} in environment variable definitions?
The text was updated successfully, but these errors were encountered:
Issue Description
When running the serverless application offline, I encounter the following error:
This issue is similar to #1227 (at least with the setup of ENV's), but with a different error message.
Environment
Configuration
Here's my truncated
serverless.yml
:Attempted Solutions
serverless-offline
configuration:However, I'm still encountering the same error.
${self:provider.stage}
from theFOO_BAR
environment variable definition works:This suggests that the issue is specifically related to resolving
${self:provider.stage}
when running offline.Question
How can I resolve this variable resolution error when running the serverless application offline, particularly when using
${self:provider.stage}
in environment variable definitions?The text was updated successfully, but these errors were encountered: