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

feat: added support for a custom endpoint url #183

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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.

None yet

3 participants