components icon indicating copy to clipboard operation
components copied to clipboard

Environment variable is not combined with extra string

Open imdatngo opened this issue 4 years ago • 0 comments

Description

The components' inputs are not parsed correctly when using environment variables with extra string, only the variable itself is assigned.

Sample code

.env

DbTablePrefix="dev_"

serverless.yml

myTable:
  component: "@serverless/aws-dynamodb"
  inputs:
    name: ${env.DbTablePrefix}MyTableName

Deployment output:

$ serverless -v

  myTable: 
    name:   dev_
    arn:    arn:aws:dynamodb:ap-southeast-1:************:table/dev_
    region: ap-southeast-1

Additional Data

Serverless version

Framework Core: 1.62.0
Plugin: 3.3.0
SDK: 2.3.0
Components Core: 1.1.2
Components CLI: 1.4.0

imdatngo avatar Feb 01 '20 16:02 imdatngo