diff --git a/provider/provider.go b/provider/provider.go index 36a6439..a4b0351 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -418,12 +418,7 @@ func getClient(conf *ProviderConf) (*elastic7.Client, error) { func assumeRoleCredentials(region, roleARN, roleExternalID, profile string) *awscredentials.Credentials { sessOpts := awsSessionOptions(region) - if profile == "" { - sessOpts.Profile = "default" - } else { - sessOpts.Profile = profile - } - + sessOpts.Profile = profile sess := awssession.Must(awssession.NewSessionWithOptions(sessOpts)) stsClient := awssts.New(sess) assumeRoleProvider := &awsstscreds.AssumeRoleProvider{