[DRIVERS-2639] Fix handling of EC2 Instance Profile in EG Tests Created: 30/May/23 Updated: 21/Aug/23 |
|
| Status: | Implementing |
| Project: | Drivers |
| Component/s: | Evergreen Tools |
| Fix Version/s: | None |
| Type: | Task | Priority: | Unknown |
| Reporter: | Steve Silvester | Assignee: | Steve Silvester |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Changes: | Needed - No Spec Changes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Downstream Changes Summary: | Add appropriate Evergreen Config to restore the Instance Profile that is removed during the AWS Web Identity test. See example commit in Python: https://github.com/mongodb/mongo-python-driver/commit/2fe01929e93929cb904aafac1038fadd3d324395 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Start date: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
In However, we were still removing the instance profile as part of our AWS "web identity" tests, because the AWS SDKs would not use the web identity credentials if instance profile credentials were available. When those hosts would get reused, they would not have the assigned instance profile. This would cause 404 errors in our AWS tests that relied on the predefined instance profile, and would also affect any other EG users that were relying on the new capability. This ticket tracks ensuring that we restore the instance profile as part of the teardown of the EG build. Relevant change to drivers-eg-tools: https://github.com/mongodb-labs/drivers-evergreen-tools/pull/307 Python driver update: https://github.com/mongodb/mongo-python-driver/pull/1218 Node driver update: https://github.com/mongodb/node-mongodb-native/pull/3686 |
| Comments |
| Comment by Githook User [ 01/Jun/23 ] |
|
Author: {'name': 'Steven Silvester', 'email': 'steven.silvester@ieee.org', 'username': 'blink1073'}Message: DRIVERS-2639 Fix handling of EC2 Instance Profile in EG Tests (#313) |
| Comment by Steve Silvester [ 01/Jun/23 ] |
|
jason.walsh@mongodb.com is there anything that needs to be done once we implement this across the drivers, such as reaping all the active hosts? |