-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
test-aws-auth task constantly fails on master. An example of the failure https://evergreen.mongodb.com/task_log_raw/mongo_ruby_driver_aws_auth_temporary__mongodb_version~4.4_topology~standalone_auth_and_ssl~aws_ec2_ruby~ruby_3.1_os~ubuntu1804_test_aws_auth_e19bc7e8d50de473031e3954423656cb8ecf050c_22_12_15_17_01_17/0?type=T
1) Mongo::Auth::Aws::CredentialsRetriever when user is not given ec2 instance role when instance profile is not assigned raises an error Failure/Error: raise Unauthorized.new(user, used_mechanism: self.class.const_get(:MECHANISM), message: message, server: connection.server, code: doc[:code] ) Mongo::Auth::Unauthorized: User (mechanism: aws) is not authorized to access ruby-driver (auth source: $external, used mechanism: MONGODB-AWS, used server: localhost:27017 (STANDALONE)): [11:UserNotFound]: Could not find user "arn:aws:iam::579766882180:user/BUILD-7242" for db "$external"