The Amazon Elastic Beanstalk blurb says:
Elastic Beanstalk lets you "open the hood" and retain full control ... even pass environment variables through the Elastic Beanstalk console.
http://aws.amazon.com/elasticbeanstalk/
How to pass other environment variables besides the one in the Elastic Beanstalk configuration?
This seems to be the only way to set ENVs with dynamic values in beanstalk. I came up with a workaround that works for my multi-docker setup:
1) Add this to your Dockerfile before building + uploading to your ECS repository:
2) In your Dockerrun.aws.json file create a volume:
3) Mount volume to your container
4) In your .ebextensions/options.config file add a container_commands block like so:
5) eb deploy and your ENVS should be available in your docker container
You can add more ENVs by adding more container_commands like:
Hope this helps!