salmon-ghost-86211
10/23/2020, 1:30 PMimport * as eks from "@pulumi/eks";
but can also import others like aws/awsx.
If I create an EKS cluster and then create a node group with the cluster's createNodeGroup
function, it generates an Auto Scaling Group (ASG) to manage the number of instances in the cluster.
I would like to set some properties of the ASG such as enabledMetrics, but I am uncertain how to access the ASG that got created. The node group does have a property named autoScalingGroupName
, so I should be able to access it as an output but I am not sure how.billowy-army-68599
createNodeGroup
function is a helper function to make creating the groups easier, we don't expose all the options from the cloudformation stack or the autoscaling group there.
If you want to do this, you'll unfortunately have to manually create the autoscaling group and set it there. You'll need to join the nodes to your EKS cluster using user data, like this:
https://github.com/pulumi/pulumi-eks/blob/b087075c833a0f60243cf3ef064f28c22690e881/nodejs/eks/nodegroup.ts#L454salmon-ghost-86211
10/23/2020, 4:47 PMautoScalingGroupName
is exposed as a property of the node group, is it possible use that and a get
function to get a reference to that object and then modify settings?billowy-army-68599
salmon-ghost-86211
10/23/2020, 4:58 PMbillowy-army-68599
salmon-ghost-86211
10/23/2020, 5:53 PM