Skip to content

Commit

Permalink
Merge pull request #209 from /issues/208-toil-pass-role
Browse files Browse the repository at this point in the history
Allow toil-box to pass IAM role (resolves #208)
  • Loading branch information
hannes-ucsc authored Jul 20, 2016
2 parents e0d0027 + 90285bf commit 99b50e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toil/src/cgcloud/toil/toil_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 99b50e4

Please sign in to comment.