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
Having trouble configuring a CI/CD pipeline for your Serverless apps? Let Seed do it for you!
Learn More