title: Pass different variables to different Stages
body: <p>I have a Code Pipeline setup via the AWS CDK that monitors a main branch. When a push is made to the main branch the Code Pipeline is triggered. My Pipeline contains two stages, UAT and Prod. A push to the main branch will result in the changes being made to the UAT environment, and then a manual approval is needed to push the changes to the production environment.</p>
  <p>E.G.:</p>
  <pre><code>        pipeline.AddStage(new JournalAppStage(this, &quot;uat&quot;, new Amazon.CDK.StageProps {
            Env = new Environment {
              Account = System.Environment.GetEnvironmentVariable(&quot;UAT_ACCOUNT&quot;),
              Region = System.Environment.GetEnvironmentVariable(&quot;UAT_REGION&quot;)
            }
          }));
          
          pipeline.AddStage(new JournalAppStage(this, &quot;prod&quot;, new Amazon.CDK.StageProps {
            Env = new Environment {
              Account = System.Environment.GetEnvironmentVariable(&quot;PROD_ACCOUNT&quot;),
              Region = System.Environment.GetEnvironmentVariable(&quot;PROD_REGION&quot;)
            }
          }), new AddStageOpts {
            StackSteps = new [] { new StackSteps {
              Stack = JournalAppStage.journalStack,
              ChangeSet = new [] {
                new ManualApprovalStep(&quot;ChangeSetApproval&quot;),
              }
            }}
          });
  </code></pre>
  <p>My question is, how can I pass different variables to each of these stages? As an example, I have an API gateway that can only be accessed via the VPC Endpoint, however this endpoint ID is different in UAT and Prod, so I would like to be able to pass in a different Value to each stage.</p>