diff --git a/integration_tests/snapshots/correct-step_functions_python_stack-snapshot.json b/integration_tests/snapshots/correct-step_functions_python_stack-snapshot.json index f3d09e88..864a1836 100644 --- a/integration_tests/snapshots/correct-step_functions_python_stack-snapshot.json +++ b/integration_tests/snapshots/correct-step_functions_python_stack-snapshot.json @@ -7,6 +7,35 @@ "Statement": [ { "Action": "sts:AssumeRole", + "Condition": { + "ArnLike": { + "aws:SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":states:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":stateMachine:*" + ] + ] + } + }, + "StringEquals": { + "aws:SourceAccount": { + "Ref": "AWS::AccountId" + } + } + }, "Effect": "Allow", "Principal": { "Service": "states.amazonaws.com" @@ -331,6 +360,35 @@ "Statement": [ { "Action": "sts:AssumeRole", + "Condition": { + "ArnLike": { + "aws:SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":states:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":stateMachine:*" + ] + ] + } + }, + "StringEquals": { + "aws:SourceAccount": { + "Ref": "AWS::AccountId" + } + } + }, "Effect": "Allow", "Principal": { "Service": "states.amazonaws.com"