Hi, I'm trying to create an EKS ManagedNodeGroup, ...
# kubernetes
c
Hi, I'm trying to create an EKS ManagedNodeGroup, which requires a
cluster
argument. I'm finding that the
cluster
it expects is not compatible with the result of
aws.eks.getCluster
, and I'm not sure what to do.
Copy code
const cluster = await aws.eks.getCluster({
  name: "my-cluster-name",
})

const nodeGroup = new eks.ManagedNodeGroup("node-group", {cluster: cluster})
I'm getting a Typescript error
Copy code
Type 'GetClusterResult' is not assignable to type 'Cluster | CoreData'.
  Type 'GetClusterResult' is missing the following properties from type 'CoreData': cluster, vpcId, subnetIds, clusterSecurityGroup, and 5 more
(using
getClusterOutput
has the same problem)