@@ -426,35 +426,9 @@ functions:
426
426
MONGODB_URI="${plain_auth_mongodb_uri}" evergreen/run-plain-auth-tests.sh
427
427
428
428
add-aws-auth-variables-to-file :
429
- - command : shell.exec
430
- type : test
429
+ - command : ec2.assume_role
431
430
params :
432
- working_dir : mongo-csharp-driver
433
- silent : true
434
- script : |
435
- cat <<EOF > ${DRIVERS_TOOLS}/.evergreen/auth_aws/aws_e2e_setup.json
436
- {
437
- "iam_auth_ecs_account" : "${iam_auth_ecs_account}",
438
- "iam_auth_ecs_secret_access_key" : "${iam_auth_ecs_secret_access_key}",
439
- "iam_auth_ecs_account_arn": "arn:aws:iam::557821124784:user/authtest_fargate_user",
440
- "iam_auth_ecs_cluster": "${iam_auth_ecs_cluster}",
441
- "iam_auth_ecs_task_definition": "${iam_auth_ecs_task_definition}",
442
- "iam_auth_ecs_subnet_a": "${iam_auth_ecs_subnet_a}",
443
- "iam_auth_ecs_subnet_b": "${iam_auth_ecs_subnet_b}",
444
- "iam_auth_ecs_security_group": "${iam_auth_ecs_security_group}",
445
- "iam_auth_assume_aws_account" : "${iam_auth_assume_aws_account}",
446
- "iam_auth_assume_aws_secret_access_key" : "${iam_auth_assume_aws_secret_access_key}",
447
- "iam_auth_assume_role_name" : "${iam_auth_assume_role_name}",
448
- "iam_auth_ec2_instance_account" : "${iam_auth_ec2_instance_account}",
449
- "iam_auth_ec2_instance_secret_access_key" : "${iam_auth_ec2_instance_secret_access_key}",
450
- "iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}",
451
- "iam_auth_assume_web_role_name": "${iam_auth_assume_web_role_name}",
452
- "iam_web_identity_issuer": "${iam_web_identity_issuer}",
453
- "iam_web_identity_rsa_key": "${iam_web_identity_rsa_key}",
454
- "iam_web_identity_jwks_uri": "${iam_web_identity_jwks_uri}",
455
- "iam_web_identity_token_file": "${iam_web_identity_token_file}"
456
- }
457
- EOF
431
+ role_arn : ${aws_test_secrets_role}
458
432
459
433
run-aws-auth-test-with-regular-aws-credentials :
460
434
- command : shell.exec
0 commit comments