hey guys - i can't seem to find the equivalent of ...
# general
f
hey guys - i can't seem to find the equivalent of https://www.terraform.io/docs/providers/aws/d/autoscaling_groups.html
I'm trying to use existing ASGs, basically something like this
Copy code
const autoscalingGroups = aws.autoscaling.getGroups({
      filters: [
          {
              name: `tag:<http://kubernetes.io/cluster/${environment}|kubernetes.io/cluster/${environment}>`,
              values: ["owned"],
          },
          {
              name: "tag:Name",
              values: [`${environment}-k8s-worker*`],
          },
      ]
});
expecting it to work similar to
aws.ec2.getSubnets
, etc
ah, looks like its
aws.getAutoscalingGroups
- that's kinda confusing
i expected it to be under
aws.autoscaling
or
aws.ec2
s
@fancy-magazine-29876 not sure I disagree there!
I’ll see about moving it into the auto scaling package
f
thanks!