Skip to content

feat: added support for a custom endpoint url#183

Open
amitassaraf wants to merge 1 commit intokislyuk:mainfrom
amitassaraf:feat/aws-endpoint-override-support
Open

feat: added support for a custom endpoint url#183
amitassaraf wants to merge 1 commit intokislyuk:mainfrom
amitassaraf:feat/aws-endpoint-override-support

Conversation

@amitassaraf
Copy link

TLDR; Added support to provide a custom endpoint URL to the boto3 clients in case you are using a dict config / yaml file. This was not possible previously.

@amitassaraf
Copy link
Author

@kislyuk FYI

@@ -249,11 +254,15 @@ def __init__(
# Creating the client should be the final call in __init__, after all instance attributes are set.
# This ensures that failing to create the session will not result in any missing attribtues.
if boto3_client is None and boto3_profile_name is None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add some unit tests that assert these 4 branches (that the client has the custom end point when expected and throws a warning when expected, etc).

@kislyuk
Copy link
Owner

kislyuk commented Feb 10, 2023

I am open to merging this but I agree this needs a test case to assert the respective behaviors. Can you please add one?

@kislyuk
Copy link
Owner

kislyuk commented Feb 22, 2023

@amitassaraf any luck adding a test? Thanks again for contributing.

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.

3 participants

Comments