Home > database >  Access aws_autoscaling_group group created by aws_eks_node_group
Access aws_autoscaling_group group created by aws_eks_node_group

Time:09-29

Once we create aws_eks_node_group resource in terraform, one autoscaling group is automatically created. I want to use the created one and modify it

I want to add Maximum instance lifetime inside autoscaling group

Help would be appreciated!

CodePudding user response:

You can get name of the ASG, and once you have the name you can get all further details of it using aws_autoscaling_group data source.

But you can't modify as data sources are immutable. You would have to use local-exec with AWS CLI to make any changes to it.

Usually you would use scaling_config to change settings of your aws_eks_node_group ASG.

  • Related