diff --git a/config/resolve_credentials_test.go b/config/resolve_credentials_test.go index f099594c77d..adb8f2c8d1e 100644 --- a/config/resolve_credentials_test.go +++ b/config/resolve_credentials_test.go @@ -577,6 +577,8 @@ func TestResolveCredentialsIMDSClient(t *testing.T) { opts := []func(*LoadOptions) error{ WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }), WithHTTPClient(httpClient), + WithSharedConfigProfile("profile-name"), + WithSharedConfigFiles([]string{"creds-file"}), } if tc.enabledState != imds.ClientDefaultEnableState {