[CSHARP-4302] Ensure AWS EC2 Credential Test is Running Properly Created: 25/Aug/22  Updated: 27/Oct/23  Resolved: 15/Sep/22

Status: Closed
Project: C# Driver
Component/s: Authentication
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: PM Bot Assignee: Dmitry Lukyanov (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2425 Ensure AWS EC2 Credential Test is Run... Implementing
Upstream Changes Summary:

DRIVERS-2425:
Several of the drivers are using the pattern of creating a prepare_mongodb_aws.sh file and sourcing as part of their AWS Evergreen tests. For the case of testing against EC2 credentials, several of the drivers are not writing this file as part of the task, but the file exists on disk from a previous task run on the same job. The task is therefore run using the contents of prepare_mongodb_aws.sh , which could contain AWS auth environment variables, preventing the driver from fetching the credentials using the AWS end point. The file should be overwritten or removed during the EC2 credential test.

See https://github.com/mongodb/mongo-python-driver/commit/0f135a157e2fa6ae66d4091186bdf0c40113ef77 for an example fix.


 Description   

This ticket was split from DRIVERS-2425, please see that ticket for a detailed description.



 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 15/Sep/22 ]

we already have this logic https://github.com/mongodb/mongo-csharp-driver/blob/master/evergreen/evergreen.yml#L513

Generated at Wed Feb 07 21:47:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.