stepfunctions StateMachine Create Bug #1830
Labels
awaiting-feedback
Blocked on input from the author
kind/bug
Some behavior is incorrect or out of spec
needs-repro
Needs repro steps before it can be triaged or fixed
What happened?
I have a problem creating a StepFunction StateMachine using the aws-native plugin. I have two stacks, one of which is a test Stack, with the following code:
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=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"]
)
Error occurred when running production code: NameError: name 'StateMachineDefinitionArgs' is not defined
Because I tested that the stack is fine and the production stack has a problem, so I feel this is a bug.
Example
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"]
)
Output of
pulumi about
CLI
Version 3.138.0
Go Version go1.23.2
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.49.1
resource aws-native 1.8.0
language python unknown
Host
OS darwin
Version 15.0.1
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: