aws-sdk-js
aws-sdk-js copied to clipboard
Feature: Configure Services' Endpoint URLs via Environment Variables
Is your feature request related to a problem? Please describe. I've been looking at the documentation about environment variables and see that you are able to configure credentials, regions, and profiles using environment variables, but I do not see a way to configure the endpoint URL option to point to our internal proxy.
Describe the solution you'd like My suggestion is to configure the endpoint URL if either the AWS_<REGION>_<SERVICE>ENDPOINT or AWS<SERVICE>_ENDPOINT (in that order of priority) environment variables are available.
Describe alternatives you've considered Use environment variable in code:
new AWS.Lambda({ endpoint: process.env.AWS_URL })
Additional context I need it for localstack :)
+1
This would be very helpful for pointing at MinIO on our local dev machines (so we can still dev on an airplane, bad connection, etc), but then easily default back to S3 in production.
If implemented, it would be helpful to be per-service (like AWS_S3_ENDPOINT). For example - we might want Lambda to point at local SAM, but S3 to point at local MinIO.
There's an easy work around here, but it would still be nice to have.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
Thank you for posting your feedback here, and our apologies that we’ve been thinking this over for a long time without much forward motion. There are similar requests to implement this feature in a few of the AWS SDKs and the AWS CLI, so in order to coordinate those teams - and hopefully make the discussions a little easier to follow - we’ve created a new issue in aws/aws-sdk here: https://github.com/aws/aws-sdk/issues/229
Hi all,
We recently added a pull request (https://github.com/aws/aws-sdk/pull/230) that contains a proposal based on community comments and suggestions and our own discussions. This document proposes to extend the options for configuring the endpoint to allow users to provide an endpoint URL independently for each AWS service via an environment variable or a profile subsection in the shared configuration file.
You can read the proposal here.
For more information on how to give feedback, please see this comment on the aws/aws-sdk repository:
https://github.com/aws/aws-sdk/issues/229#issuecomment-1118725725
Thanks!