Old way - use .ebextensions/*.config in AWS CLI and modify the file that has environment variables . Or you can add, edit and remove environment variables in the Elastic Beanstalk web interface.
The variables are under Configuration → Software Configuration: