We deploy to different Elastic Beanstalk environments depending on the branch. For example, we have a dev branch that gets deployed to a dev environment.
The global environment variables are very helpful but it would be extremely helpful to specify environment variables that apply ONLY for certain branches. The same logic used to match the pipelines branch could apply. So for example I could specify that APPLICATION_ENVIRONMENT should be "my_dev_environment" only if the branch starts with "dev".
BTW, we are working around this by overriding the ENV variables in the build script but it would be cleaner to maintain all ENV variables in the pipelines interface.