title: AWS CDK, CfnParameter valueAsList: how to pass lists in cmd params
body: <p>I can pass a single value, e.g. VPC id like so:</p>
  <pre><code>npx cdk deploy --parameters vpcId=vpc-12345
  </code></pre>
  <p>And then access it inside the stack like so:</p>
  <pre><code>const vpcId = new cdk.CfnParameter(this, &quot;vpcId&quot;, {type: &quot;String&quot;});
  
  
  const vpc = ec2.Vpc.fromVpcAttributes(this, &quot;myVPC&quot;, {
        vpcId: vpcId.valueAsString,
        availabilityZones: [0, 1].map(i =&gt; cdk.Fn.select(i, cdk.Fn.getAzs('ap-southeast-2'))),
        publicSubnetIds: publicSubnetIds.valueAsList, // [&quot;subn1&quot;, &quot;subn2&quot;]
        privateSubnetIds: privateSubnetIds.valueAsList
      });
  </code></pre>
  <p>But when I do:</p>
  <pre><code>npx cdk deploy --parameters publicSubnetIds=subnet0001,subnet0002
  </code></pre>
  <p>And then:</p>
  <pre><code>const publicSubnetIds = new cdk.CfnParameter(this, &quot;publicSubnetIds&quot;, {type: &quot;List&lt;String&gt;&quot;})
  </code></pre>
  <p>I get a single entry in the result [ '#{Token[TOKEN.62]}' ] if I do publicSubnetIds.getValueAsList, not an array of two values as expected.</p>
  <p>How do I pass multiple values in cli parameters, such as array of subnet Ids?</p>