-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_stepfunctions: breaking change in 2.178 -> RuntimeError: ModifiedEcsRunTask.to_state_json() takes 1 positional argument but 2 were given #33319
Comments
Hi @nielsspaap, thank you for reporting this issue. This is be the related change: #32343 This seems to be because of a change in the
public bind(scope: Construct, _sfnPrincipal: iam.IPrincipal, sfnProps: StateMachineProps, graph?: StateGraph): DefinitionConfig {
const graphJson = graph!.toGraphJson(sfnProps.queryLanguage);
return {
definitionString: Stack.of(scope).toJsonString({
...graphJson,
Comment: sfnProps.comment,
QueryLanguage: sfnProps.queryLanguage,
}),
};
} The extra parameter is always passed in the We are currently looking for a solution on our end as this is not a trivial fix since some customers may already be relying on the new implementation in v2.178.0 and reverting this change can also be a breaking change for them. We appreciate your patience. |
Hi @nielsspaap, Since you’re using Python CDK, which relies on JSII to bridge CDK Javascript and Python communication, there are some limitations when overriding methods. The error you’re encountering is due to one of these limitations. |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
Since the release of version 2.178 there is an issue with the EcsRunTask. This is the current class we have:
This was working fine till 2.177 but now is failing with the following error:
Regression Issue
Last Known Working CDK Version
2.177
Expected Behavior
1 positional argument is needed
Current Behavior
2 positional argument are needed
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.178
Framework Version
No response
Node.js Version
OS
Any
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: