@@ -2,12 +2,12 @@ var async = require('async');
22var helpers = require ( '../../../helpers/aws' ) ;
33
44module . exports = {
5- title : 'AutoScaling Group Missing ELB' ,
5+ title : 'Auto Scaling Group Missing ELB' ,
66 category : 'AutoScaling' ,
7- description : 'Ensures all AutoScaling groups are referencing active load balancers.' ,
8- more_info : 'Each AutoScaling group with a load balancer configured should reference an active ELB.' ,
7+ description : 'Ensures all Auto Scaling groups are referencing active load balancers.' ,
8+ more_info : 'Each Auto Scaling group with a load balancer configured should reference an active ELB.' ,
99 link : 'https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html' ,
10- recommended_action : 'Ensure that the AutoScaling group load balancer has not been deleted. If so, remove it from the ASG.' ,
10+ recommended_action : 'Ensure that the Auto Scaling group load balancer has not been deleted. If so, remove it from the ASG.' ,
1111 apis : [ 'AutoScaling:describeAutoScalingGroups' , 'ELB:describeLoadBalancers' , 'ELBv2:describeLoadBalancers' ] ,
1212
1313 run : function ( cache , settings , callback ) {
@@ -29,7 +29,7 @@ module.exports = {
2929 if ( ! autoScalingGroups || ! elasticLoadBalancers || ! elasticLoadBalancersV2 ) return rcb ( ) ;
3030
3131 if ( autoScalingGroups . err || ! autoScalingGroups . data ) {
32- helpers . addResult ( results , 3 , 'Unable to query for AutoScaling groups: ' + helpers . addError ( autoScalingGroups ) , region ) ;
32+ helpers . addResult ( results , 3 , 'Unable to query for Auto Scaling groups: ' + helpers . addError ( autoScalingGroups ) , region ) ;
3333 return rcb ( ) ;
3434 }
3535
@@ -44,7 +44,7 @@ module.exports = {
4444 }
4545
4646 if ( ! autoScalingGroups . data . length ) {
47- helpers . addResult ( results , 0 , 'No AutoScaling group found' , region ) ;
47+ helpers . addResult ( results , 0 , 'No Auto Scaling group found' , region ) ;
4848 return rcb ( ) ;
4949 }
5050
@@ -77,22 +77,22 @@ module.exports = {
7777
7878 if ( inactiveElbs . length ) {
7979 helpers . addResult ( results , 2 ,
80- 'AutoScaling group utilizes these inactive load balancers: ' + inactiveElbs . join ( ', ' ) ,
80+ 'Auto Scaling group utilizes these inactive load balancers: ' + inactiveElbs . join ( ', ' ) ,
8181 region , resource ) ;
8282 } else {
8383 helpers . addResult ( results , 0 ,
84- 'AutoScaling group: ' + asg . AutoScalingGroupName + ' utilizes active load balancers' ,
84+ 'Auto Scaling group: ' + asg . AutoScalingGroupName + ' utilizes active load balancers' ,
8585 region , resource ) ;
8686 }
8787 }
8888 else {
8989 helpers . addResult ( results , 2 ,
90- 'AutoScaling group does not have any Load Balancer associated' , region , resource ) ;
90+ 'Auto Scaling group does not have any Load Balancer associated' , region , resource ) ;
9191 }
9292 }
9393 else {
9494 helpers . addResult ( results , 0 ,
95- 'AutoScaling group does not utilize a load balancer' , region , resource ) ;
95+ 'Auto Scaling group does not utilize a load balancer' , region , resource ) ;
9696 }
9797
9898 } ) ;
0 commit comments