2

I have serverless yml and a config file

config file

 app: {
   port: 3000,

 db: {
   connectionString: 'xxxxx'
 },
  lambdaDeploy:{
   stage : "DEV",
   region : "es-west-1"
 }

Trying to use these variables in yml like below

yml

provider:
  name: aws
  runtime: nodejs6.10
  stage: ${file(./appconfiguration.json).app.stage}
  region: ${file(./appconfiguration.json).app.region}

But its reading and taking default

Please advise.
Thanks