Skip to content
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

CDKTF Support - Python #1

Open
shakib609 opened this issue Jan 19, 2024 · 0 comments
Open

CDKTF Support - Python #1

shakib609 opened this issue Jan 19, 2024 · 0 comments

Comments

@shakib609
Copy link

I have added the below provider in my cdktf.json -> terraformProviders

  "name": "process",
  "source": "Mietz-GmbH/process",
  "version": "0.1.3"
}```

And this is my ProcessStart Data

    externalProcessData = DataProcessStart(
        self,
        "ssm_session_process",
        command=[
            DataProcessStartCommand(
                platforms=['linux'],
                command="echo 'Hello World'"
            ),
        ],
    )

When running this with cdktf deploy I am getting the below error:

[2024-01-19T17:12:16.113] [ERROR] default - jsii.errors.JavaScriptError:
TypeError: Cannot read properties of undefined (reading 'DataProcessStart')
at Kernel._Kernel_findSymbol (/tmp/tmpjc0q2vzg/lib/program.js:10341:28)
at Kernel._Kernel_findCtor (/tmp/tmpjc0q2vzg/lib/program.js:10082:100)
at Kernel._Kernel_create (/tmp/tmpjc0q2vzg/lib/program.js:10106:103)
at Kernel.create (/tmp/tmpjc0q2vzg/lib/program.js:9779:93)
at KernelHost.processRequest (/tmp/tmpjc0q2vzg/lib/program.js:11696:36)
at KernelHost.run (/tmp/tmpjc0q2vzg/lib/program.js:11656:22)
at Immediate._onImmediate (/tmp/tmpjc0q2vzg/lib/program.js:11657:46)
at process.processImmediate (node:internal/timers:478:21)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "~/main.py", line 30, in

[2024-01-19T17:12:16.114] [ERROR] default - stack = DbStack(
^^^^^^^^^^^^^^^^^^
File "/.local/share/virtualenvs/venv/lib/python3.11/site-packages/jsii/_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
/stack/main.py", line 54, in init
externalProcessData = DataProcessStart(
^^^^^^^^^^^^^^^^^
File "/.local/share/virtualenvs/venv/lib/python3.11/site-packages/jsii/_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
/imports/process/data_process_start/init.py", line 82, in init
jsii.create(self.class, self, [scope, id_, config])
File "/.local/share/virtualenvs/venv/lib/python3.11/site-packages/jsii/_kernel/init.py", line 334, in create
response = self.provider.create(
^^^^^^^^^^^^^^^^^^^^^
File "
/.local/share/virtualenvs/venv/lib/python3.11/site-packages/jsii/_kernel/providers/process.py", line 365, in create
return self._process.send(request, CreateResponse)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/.local/share/virtualenvs/venv/lib/python3.11/site-packages/jsii/_kernel/providers/process.py", line 342, in send

[2024-01-19T17:12:16.114] [ERROR] default - raise RuntimeError(resp.error) from JavaScriptError(resp.stack)



cdktf version: 0.19.1
provider version: 0.1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant