AWS Elastic Beanstalk - Dump Environment Variables to .env File
I've been testing AWS Elastic Beanstalk for a PHP app that's loosely built on Symfony components.
I've been using Beanstalk for some simple apps, but this is a bit more complex and I ran into trouble with defining environment variables and using .env
files and accessing them from both web and the console. Here's a longer article how to dump AWS Elastic Beanstalk environment variables into a .env
file.