@@ -35,7 +35,6 @@ import (
35
35
"github.com/aws/aws-sdk-go/aws/endpoints"
36
36
"github.com/aws/aws-sdk-go/aws/request"
37
37
"github.com/aws/aws-sdk-go/aws/session"
38
- "github.com/aws/aws-sdk-go/service/autoscaling"
39
38
"github.com/aws/aws-sdk-go/service/ec2"
40
39
"github.com/aws/aws-sdk-go/service/elb"
41
40
"github.com/aws/aws-sdk-go/service/elbv2"
@@ -291,7 +290,6 @@ type Services interface {
291
290
Compute (region string ) (iface.EC2 , error )
292
291
LoadBalancing (region string ) (ELB , error )
293
292
LoadBalancingV2 (region string ) (ELBV2 , error )
294
- Autoscaling (region string ) (ASG , error )
295
293
Metadata () (config.EC2Metadata , error )
296
294
KeyManagement (region string ) (KMS , error )
297
295
}
@@ -355,13 +353,6 @@ type ELBV2 interface {
355
353
WaitUntilLoadBalancersDeleted (* elbv2.DescribeLoadBalancersInput ) error
356
354
}
357
355
358
- // ASG is a simple pass-through of the Autoscaling client interface, which
359
- // allows for testing.
360
- type ASG interface {
361
- UpdateAutoScalingGroup (* autoscaling.UpdateAutoScalingGroupInput ) (* autoscaling.UpdateAutoScalingGroupOutput , error )
362
- DescribeAutoScalingGroups (* autoscaling.DescribeAutoScalingGroupsInput ) (* autoscaling.DescribeAutoScalingGroupsOutput , error )
363
- }
364
-
365
356
// KMS is a simple pass-through of the Key Management Service client interface,
366
357
// which allows for testing.
367
358
type KMS interface {
@@ -379,7 +370,6 @@ type Cloud struct {
379
370
ec2 iface.EC2
380
371
elb ELB
381
372
elbv2 ELBV2
382
- asg ASG
383
373
kms KMS
384
374
metadata config.EC2Metadata
385
375
cfg * config.CloudConfig
@@ -614,11 +604,6 @@ func newAWSCloud2(cfg config.CloudConfig, awsServices Services, provider config.
614
604
return nil , fmt .Errorf ("error creating AWS ELBV2 client: %v" , err )
615
605
}
616
606
617
- asg , err := awsServices .Autoscaling (regionName )
618
- if err != nil {
619
- return nil , fmt .Errorf ("error creating AWS autoscaling client: %v" , err )
620
- }
621
-
622
607
kms , err := awsServices .KeyManagement (regionName )
623
608
if err != nil {
624
609
return nil , fmt .Errorf ("error creating AWS key management client: %v" , err )
@@ -628,7 +613,6 @@ func newAWSCloud2(cfg config.CloudConfig, awsServices Services, provider config.
628
613
ec2 : ec2 ,
629
614
elb : elb ,
630
615
elbv2 : elbv2 ,
631
- asg : asg ,
632
616
metadata : metadata ,
633
617
kms : kms ,
634
618
cfg : & cfg ,
0 commit comments