Skip to content

Cannot resolve variable at "custom.conf": Value not found at "self" source #625

Answered by mkleszcz
quandat10 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

You need to look at the custom.conf key in the serverless config.
The issue is in this fragment of the serverless.yml:

  conf: ${file(./${self:custom.confFile.${self:provider.stage}})}
  confFile:
    local: workers.conf.local.yml
    dev: workers.conf.yml
    qa: workers.conf.yml
    prod: workers.conf.yml

You are trying to build the saas environment and there is no confFile.saas key.
You need to add a single line and it should work:

  conf: ${file(./${self:custom.confFile.${self:provider.stage}})}
  confFile:
    local: workers.conf.local.yml
    dev: workers.conf.yml
    qa: workers.conf.yml
    prod: workers.conf.yml
    saas: workers.conf.yml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quandat10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants