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

BaseAWS - Override client when resource_type is user to get custom waiters #30897

Merged
merged 3 commits into from
Apr 28, 2023

Conversation

utkarsharma2
Copy link
Contributor

Currently, in the BaseAWS hook, the custom waiter doesn't work with resource_type, only client_type is supported. In this PR we are overriding the client when the user uses resource_type's hooks with boto3.client(). This PR temporarily fixes the issue on the Airflow side, until it is not fixed in Botocore.

@utkarsharma2 utkarsharma2 marked this pull request as ready for review April 27, 2023 12:05
@o-nikolas
Copy link
Contributor

CC @ferruzzi

@o-nikolas o-nikolas requested a review from ferruzzi April 27, 2023 18:46
Copy link
Contributor

@ferruzzi ferruzzi left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for submitting this. Looks good to me. I assume you tried it out with your new DynamoDB waiter?

@utkarsharma2
Copy link
Contributor Author

@ferruzzi Yes, tested it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants