https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

11/22/2019, 1:10 AM
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

white-balloon-205

11/22/2019, 1:12 AM
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

full-dress-10026

11/22/2019, 1:14 AM
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