I'm currently migrating from the plugin to the component.
In my existing serverless.yml I am able to do this sort of thing:
domainName: ${env:STAGE}-front-end.mydomain.com
But in the component if I do this
ph-front-end:
component: '@sls-next/[email protected]'
inputs:
domain:
- ${env.STAGE}-front-end
- mydomain.com
Then it doesn't seem to concatenate.
Also with the lambda names:
name:
defaultLambda: ${env.STAGE}-front-end
apiLambda: ${env.STAGE}-front-end-api
In that case I just get the STAGE variable without the -front-end added on.
If the syntax works in the old serverless.yml I'm surprised it doesn't work in the new serverless.yml.
Am I doing something wrong? I don't want to have to send ${SUBDOMAIN}, ${LAMBDA_NAME}, ${API_LAMBDA_NAME}, etc. when they're all just derivations off of ${STAGE}