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 get fails when specifying oci provider #3829

Open
1 task
claremont-awilson opened this issue Feb 17, 2025 · 0 comments
Open
1 task

cdktf get fails when specifying oci provider #3829

claremont-awilson opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working new Un-triaged issue

Comments

@claremont-awilson
Copy link

claremont-awilson commented Feb 17, 2025

Expected Behavior

cdktf get should build the oci provider.

Actual Behavior

Trying to get familiar with CDKTF and OCI. Created a simple main.py and have this in cdktf.json:

"terraformProviders": [
    {
      "name": "oci",
      "source": "hashicorp/oci",
      "localProviderPath": "./providers/terraform-provider-oci"
    }
  ],

I've tried a number of variations of the above. "source: oracle/oci" and not having a "localProviderPath" (downloaded the provider manually), downgraded cdktf-cli (from 0.20.11 to 0.20.1) but I can't get cdktf get to work.

Steps to Reproduce

Specify OCI as a provider and do a cdktf get

output (eventually, takes quite a while):

NOTE: Temp directory retained due to an error: /tmp/temp-5kEKyD
Error: jsii compilation failed with non-zero exit code: 1
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !! !!
| !! This software has not been tested with node v22.14.0. !!
| !! Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report. !!
| !! !!
| !! This software is currently running on node v22.14.0. !!
| !! As of the current release of this software, supported node releases are: !!
| !! - ^20.0.0 (Planned end-of-life: 2026-04-30) !!
| !! - ^18.0.0 (Planned end-of-life: 2025-04-30) !!
| !! !!
| !! This warning can be silenced by setting the JSII_SILENCE_WARNING_UNTESTED_NODE_VERSION environment variable. !!
| !! !!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !! !!
| !! The 5.3 release line of jsii has reached End-of-Support. !!
| !! We strongly recommend you upgrade to the current release line (5.7) at your earliest convenience. !!
| !! !!
| !! Other actively supported release lines include: !!
| !! - 5.5 (planned End-of-Support date: 2025-05-15T00:00:00.000Z) !!
| !! - 5.6 (planned End-of-Support date: 2025-07-01T00:00:00.000Z) !!
| !! !!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| [2025-02-17T13:52:48.091] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
| warning JSII6: A "peerDependency" on "constructs" at "10.1.167" means you should take a "devDependency" on "constructs" at "10.1.167" (found "undefined")
| warning JSII6: A "peerDependency" on "cdktf" at "0.20.1" means you should take a "devDependency" on "cdktf" at "0.20.1" (found "undefined")
| warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
| providers/oci/data-oci-objectstorage-private-endpoint-summaries/index.ts:201:30 - error TS2339: Property 'StringMapMapMap' does not exist on type 'typeof import("/tmp/temp-5kEKyD/node_modules/cdktf/lib/index")'.
| 201 private _fqdns = new cdktf.StringMapMapMap(this, "fqdns");
| ~~~~~~~~~~~~~~~
| providers/oci/data-oci-objectstorage-private-endpoint/index.ts:196:30 - error TS2339: Property 'StringMapMapMap' does not exist on type 'typeof import("/tmp/temp-5kEKyD/node_modules/cdktf/lib/index")'.
| 196 private _fqdns = new cdktf.StringMapMapMap(this, "fqdns");
| ~~~~~~~~~~~~~~~
+----------------------------------------------------------------------------------
| Command: /home/awilson/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
| Workdir: /tmp/temp-5kEKyD
+----------------------------------------------------------------------------------
at d (/home/awilson/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:110:1586)
at ChildProcess. (/home/awilson/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:113:112)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:489:12)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
⠦ downloading and generating modules and providers...
Error: jsii compilation failed with non-zero exit code: 1
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !! !!
| !! This software has not been tested with node v22.14.0. !!
| !! Should you encounter odd runtime issues, please try using one of the supported release before filing a bug report. !!
| !! !!
| !! This software is currently running on node v22.14.0. !!
| !! As of the current release of this software, supported node releases are: !!
| !! - ^20.0.0 (Planned end-of-life: 2026-04-30) !!
| !! - ^18.0.0 (Planned end-of-life: 2025-04-30) !!
| !! !!
| !! This warning can be silenced by setting the JSII_SILENCE_WARNING_UNTESTED_NODE_VERSION environment variable. !!
| !! !!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| !! !!
| !! The 5.3 release line of jsii has reached End-of-Support. !!
| !! We strongly recommend you upgrade to the current release line (5.7) at your earliest convenience. !!
| !! !!
| !! Other actively supported release lines include: !!
| !! - 5.5 (planned End-of-Support date: 2025-05-15T00:00:00.000Z) !!
| !! - 5.6 (planned End-of-Support date: 2025-07-01T00:00:00.000Z) !!
| !! !!
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| [2025-02-17T13:52:48.091] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
| warning JSII6: A "peerDependency" on "constructs" at "10.1.167" means you should take a "devDependency" on "constructs" at "10.1.167" (found "undefined")
| warning JSII6: A "peerDependency" on "cdktf" at "0.20.1" means you should take a "devDependency" on "cdktf" at "0.20.1" (found "undefined")
| warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
| providers/oci/data-oci-objectstorage-private-endpoint-summaries/index.ts:201:30 - error TS2339: Property 'StringMapMapMap' does not exist on type 'typeof import("/tmp/temp-5kEKyD/node_modules/cdktf/lib/index")'.
| 201 private _fqdns = new cdktf.StringMapMapMap(this, "fqdns");
| ~~~~~~~~~~~~~~~
| providers/oci/data-oci-objectstorage-private-endpoint/index.ts:196:30 - error TS2339: Property 'StringMapMapMap' does not exist on type 'typeof import("/tmp/temp-5kEKyD/node_modules/cdktf/lib/index")'.
| 196 private _fqdns = new cdktf.StringMapMapMap(this, "fqdns");
| ~~~~~~~~~~~~~~~
+----------------------------------------------------------------------------------
| Command: /home/awilson/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
| Workdir: /tmp/temp-5kEKyD
+----------------------------------------------------------------------------------

Versions

language: python
cdktf-cli: 0.20.1 & 0.20.11
node: v22.14.0
cdktf: 0.20.1 & 0.20.11
constructs: 10.1.167
jsii:
├─┬ [email protected]
│ ├─┬ @cdktf/[email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ @cdktf/[email protected]
│ │ ├─┬ @cdktf/[email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]
terraform: v1.10.5
arch: amd64
os: Oracle Linux 9.2 (WSL2)

Providers

Manually downloded oci v6.26.0

but cdktf provider list shows:

┌───────────────┬──────────────────┬───────┬────────────┬──────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├───────────────┼──────────────────┼───────┼────────────┼──────────────┼─────────────────┤
│ oci │ │ │ │ │ │
└───────────────┴──────────────────┴───────┴────────────┴──────────────┴─────────────────┘

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@claremont-awilson claremont-awilson added bug Something isn't working new Un-triaged issue labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new Un-triaged issue
Projects
None yet
Development

No branches or pull requests

1 participant