title: Apache Beam configuration from environment variables
body: <p>I was surprised to find that there doesn't seem to be a way to pull Beam configuration from Environment Variables (for the direct runner). In case it helps anyone, I've create the code snippet below as an answer - but I was wondering if there was a better (or more official) variant? This definitely feels hacky...</p>