Update Elastic Beanstalk module to support worker environments.

  Fixes #1910.