Skip to content

Commit

Permalink
Support obtaining credentials from AWS IRSA (DaspawnW#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhelev authored Aug 22, 2023
1 parent 126dee8 commit b214bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/awsdiscovery/discovery_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b214bbd

Please sign in to comment.