I\'ve created a file called .elasticbeanstalk/environment.config with the following in it:
option_settings:
- option_name: NODE_ENV
value:
Your .config file should be located in the .ebextensions
directory, not .elasticbeanstalk
.
Try it then, if that doesn't work, you can always use the console.
In the meantime, you can always use the Elastic Beanstalk Console which let's you add environment variables from its interface. To do so, just: