Hello All! Is there an option to provision an EKS ...
# general
h
Hello All! Is there an option to provision an EKS cluster with AWS managed node group (managed by AWS)? E.g., similar to
eksctl create cluster --managed
?
b
you can call this terraform API with pulumi, I think it is identical with
eksctl --managed
https://www.terraform.io/docs/providers/aws/r/eks_node_group.html
b
are you using the eks module?
👍 1
b
ohhh I just learned there is a actual module... https://github.com/pulumi/pulumi-eks nice!
h
yep, it is an EKS module. I am browsing the API, was hoping to see options for managed node groups in nodegroup options. I admit, i could be simply missing something. Or it is not supported yet.
b
@hundreds-lizard-14182 can you show me how you're currently building your cluster? depending on the dependency you're using, there are better ways to do it?
h
it is a very simple setup:
Copy code
import * as eks from "@pulumi/eks";


const cluster = new eks.Cluster("my-cluster", {
  desiredCapacity: 1,
  minSize: 1,
  maxSize: 2,
  nodeGroupOptions:{
    
  },
  instanceType: "t3.2xlarge",
  deployDashboard: true,
  enabledClusterLogTypes: [
    "api",
    "audit",
    "authenticator",
  ],
});

export const kubeconfig = cluster.kubeconfig;
My objective is to create a managed node group here. That node group is maintained by AWS (all worker nodes) but I want to control scaling.
b
we have
createdManagedNodeGroup
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/eks/#createManagedNodeGroup I'll need to construct an example if you need help, but I believe you should be able to do
cluster.createdManagedNodeGroup
👍 1