title: How to refer exsisting VPC to deploy Beanstalk app using AWS CDK TYPESCRIPT
body: <p>Working on AWS CDK TYPESCRIPT to deploy the Beanstalk app. I was able to setup a beanstalk app using AWS CDK Typescript but could not find a way to set up it in existing VPC with high availability.
  this is my ebstack.ts</p>
  <pre><code>#!/usr/bin/env node
  import cdk = require('@aws-cdk/core');
  import elasticbeanstalk = require('@aws-cdk/aws-elasticbeanstalk');
  
  
  export class ElbtestStack extends cdk.Stack {
    constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
      super(scope, id, props);
  
      //objects for access parameters
      const node = this.node;
  
      const appName = 'DEVELOPMENT';
  
      const platform = node.tryGetContext(&quot;platform&quot;);
  
      const app = new elasticbeanstalk.CfnApplication(this, 'Application', {
        applicationName: appName
      });
      const optionSettingProperties: elasticbeanstalk.CfnEnvironment.OptionSettingProperty[] = [
          {
              namespace: 'aws:autoscaling:launchconfiguration',
              optionName: 'InstanceType',
              value: 't3.small',
          },
          {
              namespace: 'aws:autoscaling:launchconfiguration',
              optionName: 'IamInstanceProfile',
              // Here you could reference an instance profile by ARN (e.g. myIamInstanceProfile.attrArn)
              // For the default setup, leave this as is (it is assumed this role exists)
              // https://stackoverflow.com/a/55033663/6894670
              value: 'aws-elasticbeanstalk-ec2-role',
          },
          {
              namespace: 'aws:elasticbeanstalk:container:nodejs',
              optionName: 'NodeVersion',
              value: '10.16.3',
          }
      ];
  
      new elasticbeanstalk.CfnEnvironment(this, 'Environment', {
        environmentName: 'x-SERVICE',
        applicationName: app.applicationName || appName,
        solutionStackName: '64bit Amazon Linux 2018.03 v4.13.1 running Node.js',
        optionSettings: optionSettingProperties,
      });
      
          
    }
  }
  </code></pre>
  <p>I am following AWS Provided examples <a href="https://github.com/aws-samples/aws-cdk-examples" rel="nofollow noreferrer">https://github.com/aws-samples/aws-cdk-examples</a>
  How can I set Subnet to deploy this beanstalk app with high-availability?</p>