hmm so having issues w/ vpc.id for elasticsearch :...
# typescript
i
hmm so having issues w/ vpc.id for elasticsearch :
Copy code
const cluster = new eks.Cluster(clusterName, {
    vpcId: vpc.id,
    subnetIds: vpc.privateSubnetIds,
    instanceType: instanceType,
    desiredCapacity: desiredCapacity,
    minSize: minSize,
    maxSize: maxSize,
    storageClasses: storageClass,
    deployDashboard: deployDashboard
});
...
let es = new aws.elasticsearch.Domain(
    "elasticsearch",
    {   
          ....
        vpcOptions: {
            vpcId: vpc.id,
            subnetIds: vpc.privateSubnetIds
        }
    }
);
getting a
Copy code
Diagnostics:
  aws:elasticsearch:Domain (elasticsearch):
    error: aws:elasticsearch/domain:Domain resource 'elasticsearch' has a problem: "vpc_options.0.vpc_id": this field cannot be set
how can this be set properly?