I want to escape $ sign when using stage variables for api gateway.
Following error appears when I try to deploy.
Invalid variable reference syntax for variable stageVariables.capabilitySecurityUrl. You can only reference env vars, options, & files. You can check our docs for more info.
I have tried following options, but not working
1) Using Without Quotes Uri: https://${stageVariables.capabilitySecurityUrl}
2) Using with quotes Uri: "https://${stageVariables.capabilitySecurityUrl}"
3) Access variable from file
./stageVariables.json
{
"capabilitySecurityUrl":"https://${stageVariables.capabilitySecurityUrl}"
}
./serverless.yml
${file(./stageVariables.json):capabilitySecurityUrl}
Any help?