https://pulumi.com logo
Title
i

incalculable-lock-7238

07/17/2019, 2:55 PM
hmm so having issues w/ vpc.id for elasticsearch :
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
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?