Can you create EKS Managed Node Groups (<https://d...
# general
f
Can you create EKS Managed Node Groups (https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html)? Or does
eks.NodeGroup
already do that?
w
Or does
eks.NodeGroup
already do that?
It does not yet - the AWS feature was just released earlier this week - we're tracking adding support here: https://github.com/pulumi/pulumi-eks/issues/278. The underlying AWS feature is exposed int he
@pulumi/aws
library already though, so you can use that directly if needed in the meantime.
f
Oh, didn't realize that. Just happened upon that page while updating things.
Looks like you need AWS to update the EKS platform version behind the scenes before you can use managed node groups.
For those following along, this will create a managed node group for you:
Copy code
new aws.eks.NodeGroup(`k8s-${env}-managed-ng`, {
        clusterName: eksCluster.core.cluster.name,
        nodeGroupName: `k8s-${env}-managed-ng`,
        nodeRoleArn: eksRole1.arn,
        releaseVersion: "1.14.7-20190927",
        instanceTypes: "m5.xlarge",
        scalingConfig: {
            desiredSize: k8sNodeCount,
            minSize: 1,
            maxSize: k8sNodeCount
        },
        subnetIds: subnetIds,
        tags: envTags
    });
👍 3