Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS SDK should try get region automatically from IMDS like other SDK languages do #6183

Open
2 tasks
jedwards1211 opened this issue Jun 10, 2024 · 1 comment
Open
2 tasks
Assignees
Labels
feature-request New feature or enhancement. May require GitHub community feedback.

Comments

@jedwards1211
Copy link

jedwards1211 commented Jun 10, 2024

Describe the feature

Other versions of the SDK provide an option to get the region automatically when running on an EC2 instance or Lambda (for example the Java SDK)

There doesn't seem to be any good reason that the JavaScript SDK should behave differently.

Use Case

As the Java SDK's own documentation states:

When your code runs on Amazon EC2 or AWS Lambda, you might want to configure clients to use the same AWS Region that your code is running on. This decouples your code from the environment it’s running in and makes it easier to deploy your application to multiple AWS Regions for lower latency or redundancy.

Proposed Solution

Like the Java SDK, the JavaScript SDK region provider chain should try to get the region from IMDS if it's unable to get it from AWS_REGION or config files.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.588

Environment details (OS name and version, etc.)

Amazon Linux 2023

@jedwards1211 jedwards1211 added feature-request New feature or enhancement. May require GitHub community feedback. needs-triage This issue or PR still needs to be triaged. labels Jun 10, 2024
@aBurmeseDev
Copy link
Member

Hello again @jedwards1211 - appreciate you for your patience.

I'm doing internal investigation as far as which SDK languages support this "region fetching from IMDS" and will report back!

@aBurmeseDev aBurmeseDev self-assigned this Jun 13, 2024
@aBurmeseDev aBurmeseDev removed the needs-triage This issue or PR still needs to be triaged. label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback.
Projects
None yet
Development

No branches or pull requests

2 participants