diff --git a/toil/src/cgcloud/toil/toil_box.py b/toil/src/cgcloud/toil/toil_box.py index b33731c..750bb8d 100644 --- a/toil/src/cgcloud/toil/toil_box.py +++ b/toil/src/cgcloud/toil/toil_box.py @@ -79,6 +79,10 @@ def _get_iam_ec2_role( self ): iam_role_name, policies = super( ToilBoxSupport, self )._get_iam_ec2_role( ) iam_role_name += '--' + abreviated_snake_case_class_name( ToilBoxSupport ) policies.update( dict( + toil_iam_pass_role=dict( + Version="2012-10-17", + Statement=[ + dict( Effect="Allow", Resource=self._role_arn( ), Action="iam:PassRole" ) ] ), ec2_full=ec2_full_policy, s3_full=s3_full_policy, sbd_full=sdb_full_policy,