@@ -487,6 +487,11 @@ functions:
487487 }
488488 EOF
489489
490+ " assume secrets manager identity " :
491+ - command : ec2.assume_role
492+ params :
493+ role_arn : ${OIDC_AWS_ROLE_ARN}
494+
490495 " setup aws env " :
491496 - command : shell.exec
492497 type : test
@@ -500,9 +505,6 @@ functions:
500505 cd -
501506
502507 " run aws auth test with regular aws credentials " :
503- - command : ec2.assume_role
504- params :
505- role_arn : ${OIDC_AWS_ROLE_ARN}
506508 - command : subprocess.exec
507509 type : test
508510 params :
@@ -518,9 +520,6 @@ functions:
518520 - .evergreen/run-mongodb-aws-test-copy.sh
519521
520522 " run aws auth test with assume role credentials " :
521- - command : ec2.assume_role
522- params :
523- role_arn : ${OIDC_AWS_ROLE_ARN}
524523 - command : subprocess.exec
525524 type : test
526525 params :
@@ -536,9 +535,6 @@ functions:
536535 - .evergreen/run-mongodb-aws-test-copy.sh
537536
538537 " run aws auth test with aws EC2 credentials " :
539- - command : ec2.assume_role
540- params :
541- role_arn : ${OIDC_AWS_ROLE_ARN}
542538 - command : subprocess.exec
543539 type : test
544540 params :
@@ -555,9 +551,6 @@ functions:
555551 - .evergreen/run-mongodb-aws-test-copy.sh
556552
557553 " run aws auth test with aws credentials as environment variables " :
558- - command : ec2.assume_role
559- params :
560- role_arn : ${OIDC_AWS_ROLE_ARN}
561554 - command : subprocess.exec
562555 type : test
563556 params :
@@ -573,9 +566,6 @@ functions:
573566 - .evergreen/run-mongodb-aws-test-copy.sh
574567
575568 " run aws auth test with aws credentials and session token as environment variables " :
576- - command : ec2.assume_role
577- params :
578- role_arn : ${OIDC_AWS_ROLE_ARN}
579569 - command : subprocess.exec
580570 type : test
581571 params :
@@ -591,9 +581,6 @@ functions:
591581 - .evergreen/run-mongodb-aws-test-copy.sh
592582
593583 " run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME set " :
594- - command : ec2.assume_role
595- params :
596- role_arn : ${OIDC_AWS_ROLE_ARN}
597584 - command : subprocess.exec
598585 type : test
599586 params :
@@ -610,9 +597,6 @@ functions:
610597 - .evergreen/run-mongodb-aws-test-copy.sh
611598
612599 " run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME unset " :
613- - command : ec2.assume_role
614- params :
615- role_arn : ${OIDC_AWS_ROLE_ARN}
616600 - command : subprocess.exec
617601 type : test
618602 params :
@@ -663,9 +647,6 @@ functions:
663647 python aws_tester.py ecs
664648
665649 " run custom csfle tests " :
666- - command : ec2.assume_role
667- params :
668- role_arn : ${OIDC_AWS_ROLE_ARN}
669650 - command : subprocess.exec
670651 type : test
671652 params :
0 commit comments