diff --git a/pkg/awsdiscovery/discovery_aws.go b/pkg/awsdiscovery/discovery_aws.go index c0f9a05..053ad49 100644 --- a/pkg/awsdiscovery/discovery_aws.go +++ b/pkg/awsdiscovery/discovery_aws.go @@ -31,7 +31,7 @@ func (d DiscoveryClientAWS) GetInstances() ([]discovery.Instance, error) { Filters: d.filter(), } if ec2Client == nil { - awsSession := session.New() + awsSession := session.Must(session.NewSession()) awsConfig := &aws.Config{} ec2Client = ec2.New(awsSession, awsConfig) }