handsome-dinner-16062
11/14/2024, 5:15 PMstepfunctions.StateMachine(
f"{function_name}StateMachine",
state_machine_name=f"{function_name}-StateMachine",
state_machine_type=stepfunctions.StateMachineType.STANDARD,
definition_string=json.dumps(step_function_machine_json),
role_arn=execution_role
)
This creation works fine.
But my other production Stack code is as follows:
stepfunctions.StateMachine(
f"{function_name}StateMachine",
state_machine_name=f"{function_name}-StateMachine",
state_machine_type=stepfunctions.StateMachineType.STANDARD,
definition_string=json.dumps(step_function_machine_json),
role_arn=self.params["execution_role"]
)
When using production deployment, an error will be reported: “NameError: name ’StateMachineDefinitionArgs ’is not defined” , which one has encountered this problem, can you help me solve it?
Thank you very much.stocky-restaurant-98004
11/14/2024, 6:03 PMhandsome-dinner-16062
11/14/2024, 6:08 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by