fix: iam role arn should have two colons
This commit is contained in:
parent
4497f18c1a
commit
33398d628f
2 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ def test_state_machine_creation_requires_valid_role_arn():
|
|||
with assert_raises(ClientError) as exc:
|
||||
client.create_state_machine(name=name,
|
||||
definition=str(simple_definition),
|
||||
roleArn='arn:aws:iam:1234:role/unknown_role')
|
||||
roleArn='arn:aws:iam::1234:role/unknown_role')
|
||||
|
||||
|
||||
@mock_stepfunctions
|
||||
|
|
@ -375,4 +375,4 @@ def _get_account_id():
|
|||
|
||||
|
||||
def _get_default_role():
|
||||
return 'arn:aws:iam:' + _get_account_id() + ':role/unknown_sf_role'
|
||||
return 'arn:aws:iam::' + _get_account_id() + ':role/unknown_sf_role'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue