-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add support for AWS_ENDPOINT_URL
environment variable
#932
Comments
Yeah that's correct. Not yet supported by the SDK. |
AWS_ENDPOINT_URL
not loaded with aws_config::load_from_env()AWS_ENDPOINT_URL
environment variable
Hi, I am new to aws-sdk-rust, and I have started to work on this issue. I think we need to set the aws-sdk-rust/sdk/aws-config/src/lib.rs Lines 592 to 602 in 464d782
|
@rcoh Hey! Hope you're doing well! Is this issue still open? I would like to give it a shot, the project is interesting to me (since I use both the language and AWS as a platform) and I would like to contribute to the development in one way or another. This issue seems like a good starting point c: |
yep this issue is still open |
This was updated in smithy-lang/smithy-rs#3488 and should work as expected now! Updating to the latest versions should fix your issue, if it doesn't please file a new issue and we will research the bug. |
Comments on closed issues are hard for our team to see. |
Describe the bug
AWS_ENDPOINT_URL
in the environment gets ignored by the SDK.Expected Behavior
The correct endpoint URL will be loaded from the environment variables and used for the SDK client(s).
Current Behavior
The endpoint URL gets ignored, and requests will be made against the AWS production endpoints.
Reproduction Steps
main.rs
:.env
:(Note: I've included a couple of additional possible spellings of the endpoint URL in order to eliminate the possibility of the error originating from a slight naming difference)
Running this code and searching the output for
EndpointUrl
shows that the endpoint URL has not been configured correctly.Possible Solution
Workaround: manually setting the endpoint override works, but this is not ideal:
I wonder if this error is originating from here:
aws-sdk-rust/sdk/aws-config/src/lib.rs
Lines 670 to 677 in 464d782
Additional Information/Context
Being able to set the endpoint URL would be really useful for local development. Consider for example the following snippet for Docker Compose, utilizing LocalStack:
and the client container having a
.env
file with the appropriateAWS_ENDPOINT_URL
and other env vars.Version
Environment details (OS name and version, etc.)
macOS Sonoma 14.0
Logs
No response
The text was updated successfully, but these errors were encountered: