Skip to content

Add aws sdk http timeout#3649

Open
haouc wants to merge 2 commits intoaws:masterfrom
haouc:add-aws-sdk-http-timeout
Open

Add aws sdk http timeout#3649
haouc wants to merge 2 commits intoaws:masterfrom
haouc:add-aws-sdk-http-timeout

Conversation

@haouc
Copy link
Copy Markdown
Contributor

@haouc haouc commented Apr 8, 2026

What type of PR is this?

Which issue does this PR fix?:

What does this PR do / Why do we need it?:
AWS SDK v2 defaults to no HTTP request timeout, which means API calls can hang indefinitely if AWS is unresponsive. Set a 10-second timeout on all SDK clients by configuring their clients.

Testing done on this change:

Tested in local clusters by replacing aws-node image.

Will this PR introduce any new dependencies?:

No
Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No

Does this change require updates to the CNI daemonset config files to work?:

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

}

// New will return aws.Config to be used by Service Clients.
func New(ctx context.Context) (aws.Config, error) {
Copy link
Copy Markdown
Collaborator

@jaydeokar jaydeokar Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why not use this New() everwhere instead of defining in multiple places to get awscfg ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is that each call site needs different config options beyond just the HTTP client timeout. Each
call site passes it via config.WithHTTPClient(awssession.NewAWSSDKHTTPClient()) alongside its own specific options.

@haouc haouc requested a review from jaydeokar April 9, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants