You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cdk synth
jsii.errors.JavaScriptError:
Error: from_state_machine_arn() missing 2 required positional arguments: 'id' and 'state_machine_arn'
at KernelHost.completeCallback (/tmp/tmp60h0j7on/lib/program.js:9740:35)
at KernelHost.processRequest (/tmp/tmp60h0j7on/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmp60h0j7on/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmp60h0j7on/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmp60h0j7on/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmp60h0j7on/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmp60h0j7on/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmp60h0j7on/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmp60h0j7on/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmp60h0j7on/lib/program.js:9786:24)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "app.py", line 47, in <module>
app.synth()
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/aws_cdk/core/__init__.py", line 16432, in synth
return typing.cast(aws_cdk.cx_api.CloudAssembly, jsii.invoke(self, "synth", [options]))
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 143, in wrapped
return _recursize_dereference(kernel, fn(kernel, *args, **kwargs))
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 363, in invoke
return _callback_till_result(self, response, InvokeResponse)
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 232, in _callback_till_result
response.cbid, str(exc), None, response_type
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 405, in sync_complete
response_type=response_type,
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 382, in sync_complete
resp = self._process.send(_CompleteRequest(complete=request), response_type)
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 326, in send
raise JSIIError(resp.error) from JavaScriptError(resp.stack)
jsii.errors.JSIIError: from_state_machine_arn() missing 2 required positional arguments: 'id' and 'state_machine_arn'
if you provide the missing scope and id arguments by:
$ cdk synth
jsii.errors.JavaScriptError:
Error: Object of type @aws-cdk/pipelines.Step is not convertible to constructs.Construct
at KernelHost.completeCallback (/tmp/tmpls92n7h_/lib/program.js:9740:35)
at KernelHost.processRequest (/tmp/tmpls92n7h_/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmpls92n7h_/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmpls92n7h_/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmpls92n7h_/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmpls92n7h_/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmpls92n7h_/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmpls92n7h_/lib/program.js:9786:24)
at KernelHost.completeCallback (/tmp/tmpls92n7h_/lib/program.js:9744:33)
at KernelHost.processRequest (/tmp/tmpls92n7h_/lib/program.js:9786:24)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "app.py", line 47, in <module>
app.synth()
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/aws_cdk/core/__init__.py", line 16432, in synth
return typing.cast(aws_cdk.cx_api.CloudAssembly, jsii.invoke(self, "synth", [options]))
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 143, in wrapped
return _recursize_dereference(kernel, fn(kernel, *args, **kwargs))
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 363, in invoke
return _callback_till_result(self, response, InvokeResponse)
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 232, in _callback_till_result
response.cbid, str(exc), None, response_type
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/__init__.py", line 405, in sync_complete
response_type=response_type,
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 382, in sync_complete
resp = self._process.send(_CompleteRequest(complete=request), response_type)
File "/home/ec2-user/environment/tmp/jsii-repro/.e/lib64/python3.7/site-packages/jsii/_kernel/providers/process.py", line 326, in send
raise JSIIError(resp.error) from JavaScriptError(resp.stack)
jsii.errors.JSIIError: Object of type @aws-cdk/pipelines.Step is not convertible to constructs.Construct
Subprocess exited with error 1
The text was updated successfully, but these errors were encountered:
Well... @aws-cdk/pipelines.Step does not implement constructs.Construct so it cannot be used as a scope... So this error is completely accurate, and you need to use something that is a construct as the state machine's scope...
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
What is the problem?
Creating
pipelines.Step
withaws_codepipeline_actions.StepFunctionInvokeAction
fails. This seems related to #2963Verbose Log
cdk synth
on original repro-jsii fails, saying:if you provide the missing scope and id arguments by:
you get the following error:
The text was updated successfully, but these errors were encountered: