I have a beanstalk module that has a Terraform resource for aws_elastic_beanstalk_environment that loads env vars from a map.
resource "aws_elastic_beanstalk