botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the CreateStateMachine operation
问题 I am getting the following error when I try to create a state machine based on my state machine definition: botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the CreateStateMachine operation: 'role' is not authorized to create managed-rule. The creation code: state_machine = sfn_client.create_state_machine( name = 'state-machine', definition = state_machine_def, roleArn = SFN_ROLE, ) My IAM role that I use contains all necessary permissions as described