title: AWS CDK - Best practice on where to store the account id?
body: <p>I am just playing around with AWS CDK and am a bit confused about where to actually store the a<em>ws account id</em> which is necessary to make it all work.</p>
  
  <p>In the official <a href="https://docs.aws.amazon.com/cdk/latest/guide/environments.html" rel="nofollow noreferrer">AWS CDK Documentation</a> itself, it's stated that you should put the whole environment - and with it the <em>account id</em> - into the code itself (at least for production environments).</p>
  
  <p>However, as I am checking that code into git aswell, this means the <em>account id</em> would be under version control.</p>
  
  <p>I always considered the <em>account id</em> a somewhat sensitive information. It just doesn't feel right to check that in - also because I might want to open source what I am working on. </p>
  
  <p>Usually I'd go ahead and just put it into an environment variable that I provide at runtime - but  the documentation actively discourages doing exactly that, and this is where my confusion is coming from.</p>
  
  <p>I know this might be a somewhat opinionated question, but: 
  <strong>Is this really the best practice to do right now? Am I missing something?</strong> </p>