Through Bitbucket, I'm passing an environmental variable object through the development tab that looks similarly to:
{ "var1": "tets.var.com", "port": "34", "username": "john", "password": "pass", "env": "dev" }
I am also passing these variables through my Bitbucket pipeline as:
npx cdk deploy app --require-approval never -c credentials="$BITBUCKET_CRED"
However, when invoking my lambda with the credentials, I am getting the error:
"SyntaxError: Unexpected token \\ in JSON at position 2"