Skip to content

Commit

Permalink
switch back to global lambda invoke policy
Browse files Browse the repository at this point in the history
  • Loading branch information
SooLee committed Jul 17, 2018
1 parent b163e0c commit 5a446d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/iam_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def create_role_for_stepfunction(iam, tibanna_policy_prefix, account_id,
print(response)
role_stepfunction = iam.Role(stepfunction_role_name)
response = role_stepfunction.attach_policy(
# PolicyArn='arn:aws:iam::aws:policy/service-role/AWSLambdaRole'
PolicyArn='arn:aws:iam::' + account_id + ':policy/' + lambdainvoke_policy_name
PolicyArn='arn:aws:iam::aws:policy/service-role/AWSLambdaRole'
# PolicyArn='arn:aws:iam::' + account_id + ':policy/' + lambdainvoke_policy_name
)
if verbose:
print(response)
Expand Down

0 comments on commit 5a446d2

Please sign in to comment.