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

fancy-magazine-29876

01/14/2019, 9:31 PM
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

stocky-spoon-28903

01/14/2019, 10:18 PM
@fancy-magazine-29876 not sure I disagree there!
I’ll see about moving it into the auto scaling package
f

fancy-magazine-29876

01/14/2019, 10:20 PM
thanks!