Skip to content

Replace unused maxRetries with maxAttempts #2709

Open
@trivikr

Description

@trivikr

Describe the bug

The maxRetries configuration was added in remote credentials provider back in Jun 15, 2017 in
d2b251e

The configuration maxRetries was changed to maxAttempts in middleware-retry to be compliant with other SDKs and retry strategy #1244

This change wasn't done in credential providers though.

Proposed fix

  • Add new configuration maxAttempts in RemoteProviderConfig, so that it reuses the value from retry while fetching credentials.
  • Instead of deleting existing maxRetries, call it deprecated in favor of maxAttempts.

Additional context

The bug was noticed while debugging retry strategy options for RemoteProviderConfig requested in #2706

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p3This is a minor priority issuequeuedThis issues is on the AWS team's backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions