diff --git a/internal/controller/upgradeinsights_cloudprovider.go b/internal/controller/upgradeinsights_cloudprovider.go index cb24c4c1..76c964aa 100644 --- a/internal/controller/upgradeinsights_cloudprovider.go +++ b/internal/controller/upgradeinsights_cloudprovider.go @@ -146,7 +146,7 @@ func (in *EKSCloudProvider) toInsightDetails(insight *types.Insight) []*console. func (in *EKSCloudProvider) config(ctx context.Context, ui v1alpha1.UpgradeInsights) (aws.Config, error) { // If credentials are not provided in the request, then use default credentials. if ui.Spec.Credentials == nil || ui.Spec.Credentials.AWS == nil { - return awsconfig.LoadDefaultConfig(ctx) + return awsconfig.LoadDefaultConfig(ctx, awsconfig.WithEC2IMDSRegion()) } // Otherwise use provided credentials.