-
Notifications
You must be signed in to change notification settings - Fork 70
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
Use a more up-to-date aiobotocore to allow assumeRole iam credentials #156
Comments
Ah just to let you know, those are some knowledge tests that I write to the test the loader (my main case is a loader related case) as well:
|
Hi @gcavalcante8808 and thanks for reporting this. Could you submit your devs as a pull request here? We'll review it and see that it gets integrated :) |
As I started the branch from the commit/tag Hi @Bladrak, with this in mind I ask: what branch Do I target with the PR? |
@gcavalcante8808 hi, can you target the |
I would like to see aiobotocore get an update as well. I have just tried to upgrade from Thumbor 6.x to 7.0.8 using 7.0.1b0 of this plugin, and I am seeing cannot pickle 'coroutine' object exceptions, which seem to be related to this. The exception looks similar to what was reported to aiobotocore in aio-libs/aiobotocore#779 and that was fixed in version 1.0.0. |
An update to this issue would be very welcome. |
+1 |
Hi Folks,
I'd like to ask about the bump of
aiobotocore
from version 0.12.0 to 2.22.0 to be able to use IRSA and other assumeRole options during credentials discovery.Actually, based on the tag
7.0.1b
I've made the required changes in this forkhttps://github.com/gcavalcante8808/aws/tree/improvement/use-botocore-2-2-0-to-support-assume-role-credentials
but I'm having some issues on the following tests:* tests/test_storage.py::CryptoS3StorageTestCase::test_can_store_crypto* tests/test_storage.py::DetectorS3StorageTestCase::test_can_store_detector_data* tests/test_result_storage.py::S3StorageTestCase::test_can_get_imageSometimes the tests passes and others from storage fails ... even changing that tornado testing timeout env var to 30 or more.But if I use the pycharm debugger and make some "pauses" they work flawlessly... seem to be something related with async or even moto, but I didn't investigate far.Edit: actually, the tests failling were a real symptom: any tests that relied on
response['Body'].read()
was getting stuck.After some tests, I just circumvected the situation with the following solution: https://github.com/gcavalcante8808/aws/blob/improvement/use-botocore-2-2-0-to-support-assume-role-credentials/tc_aws/aws/bucket.py#L74-L81.
Now all tests are working and some e2e tests that I made using thumbor, worked as well.
Versions
tc_aws == 7.0.1b
thumbor==7.0.7.
Steps to reproduce
improvement/use-botocore-2-2-0-to-support-assume-role-credentials
branch;docker run -it -e ASYNC_TEST_TIMEOUT=30 --rm -v $(pwd):/data python:3 bash
;make test
;Question
What you do you think? Is it possible to update aiobotocore to the latest version or even take advantage of the PR that I did?
Thanks in advance.
The text was updated successfully, but these errors were encountered: