Skip to content

Commit

Permalink
Merge pull request #7 from DaspawnW/bugfix/instance-state
Browse files Browse the repository at this point in the history
add filter to only get running instances
  • Loading branch information
DaspawnW authored Oct 7, 2020
2 parents 39ebd74 + 1abdf1d commit 5e3ee5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func (d Discovery) filter() []*ec2.Filter {
Name: aws.String("tag-key"),
Values: []*string{aws.String(d.tagPrefix + "*")},
},
{
Name: aws.String("instance-state-name"),
Values: []*string{aws.String("running")},
},
}

return filters
Expand Down

0 comments on commit 5e3ee5b

Please sign in to comment.