Skip to content

Conversation

@ry4n1m3
Copy link
Contributor

@ry4n1m3 ry4n1m3 commented Oct 29, 2025

This PR re-orders the default providers to solve a nuisance we've experienced using the eks or web_identity providers: the EC2 provider must time out before it will try using the next provider and we don't expect it to succeed.

We could certainly solve this by overriding the default providers, but it's nice to not have to in the default case.

The EC2 provider uniquely has to make network requests even when not configured to determine failure, whereas all the other providers can quickly fail due to missing config. This generates delay and log noise when using one of the providers listed after EC2. Reordering them should continue to be fast for all providers including EC2, and improve the performance for eks and web_identity.

Co-author: @slackersoft

Licensing:
This contribution is made by employees of Mechanical Orchard, Inc. under the terms of the project’s license.

The EC2 provider uniquely has to make network requests even when not configured to determine failure,
whereas all the other providers can quickly fail due to missing config. This generates delay and
log noise when using one of the providers listed after EC2. Reordering them should continue to be
fast for all providers including EC2, and improve the performance for eks and web_identity.
Copy link
Member

@onno-vos-dev onno-vos-dev left a comment

Choose a reason for hiding this comment

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

Sounds reasonable and thank you for a really good and solid description! <3

@onno-vos-dev onno-vos-dev merged commit 567479e into aws-beam:master Oct 30, 2025
6 checks passed
@onno-vos-dev
Copy link
Member

@ry4n1m3 Released as 1.0.2.

I'll bump aws-beam-core and aws-erlang shortly in case you need those bumped as well :-)

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