Invalid characters in environment variable
Error Message
Invalid characters in environment variable
Problem
A common mistake that can lead to this error is defining environment variables as an array instead of key-value pairs. For example:
...
provider:
environment:
- foo: abc
- bar: xyz
...
Solution
Make sure the environment variables are defined in the YAML key-value pair format.
...
provider:
environment:
foo: abc
bar: xyz
...
Help improve this page. Edit it with GitHub
Was this page helpful? Let us know via Twitter
Do your Serverless deployments take too long? Incremental deploys in Seed can speed it up 100x!
Learn More