use Adaptive mode retry to handle SSM throttling.#50
Merged
Divyanshu Tiwari (divyanshu-tiwari) merged 2 commits intomainfrom Mar 26, 2026
Merged
use Adaptive mode retry to handle SSM throttling.#50Divyanshu Tiwari (divyanshu-tiwari) merged 2 commits intomainfrom
Divyanshu Tiwari (divyanshu-tiwari) merged 2 commits intomainfrom
Conversation
Copilot started reviewing on behalf of
Divyanshu Tiwari (divyanshu-tiwari)
March 25, 2026 07:01
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds additional resilience to AWS SSM Parameter Store secret retrieval by retrying failed GetParameter calls with a small randomized delay.
Changes:
- Added
math/rand/v2+timeusage to introduce randomized backoff between attempts. - Wrapped
svc.GetParameterin a 3-attempt retry loop. - Refactored variable initialization to support retry logic.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot started reviewing on behalf of
Divyanshu Tiwari (divyanshu-tiwari)
March 25, 2026 09:57
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
prasadlohakpure
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Types of changes
This pull request updates the AWS SSM client configuration to improve reliability when fetching secrets by increasing the maximum retry attempts and switching to adaptive retry mode.
AWS SSM Client Configuration Improvements:
ssm.NewFromConfigcall insecret.gonow uses the adaptive retry mode from the AWS SDK and increases the maximum retry attempts to 15, which should help with transient errors when retrieving parameters from SSM.importsection insecret.goadds thegithub.com/aws/aws-sdk-go-v2/aws/retrypackage to support the new retry configuration.Checklist