New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't have dot in custom variable's key - could not be found. #4652
Comments
Ok, I fixed it by myself. Escape with backslash.
|
Above way (escape dot) can pass cloudformation validate, but can't be deployed.
If
|
Can you just use v1_0 instead of a . ? |
@ozbillwang There is currently no escape syntax for Serverless variable names, i.e. it is not possible to use dots in names for other things than separating subobjects. |
Thanks, @rupakg @HyperBrain At the moment, I use other characters to replace dot for these keys |
This is a (Bug Report / Feature Proposal)
Description
For bug reports:
If the variable in custom has dot, serverless will always report
could not be found.
When I reference the variable
${self:custom.version.v1.0}
, always got the error:I understand that custom variable use dot (.) as splitter, but how to escape dot when reference it?
The text was updated successfully, but these errors were encountered: