This program should succeed, as the vpcConfig.subnetIds input accepts an array of strings - however instead users will encounter an error in the analysis phase of running this program:
vpcConfig: Cannot assign '{subnetIds: string}' to 'aws:eks/ClusterVpcConfig:ClusterVpcConfig':
subnetIds: Cannot assign type 'string' to type 'List<string>'
Suppose we have the following program, assuming that the stack reference's
subnets
property is an array of strings:This program should succeed, as the
vpcConfig.subnetIds
input accepts an array of strings - however instead users will encounter an error in the analysis phase of running this program: