-
Notifications
You must be signed in to change notification settings - Fork 484
Open
Labels
bugSomething isn't workingSomething isn't workingnewUn-triaged issueUn-triaged issuepre-built providersIssues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-managerIssues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager
Description
Expected Behavior
cdktf init --template="typescript" --providers="aws"
initialized with the typescript project skeleton.
Actual Behavior
Error out with Error: Pre-built provider information not found
Steps to Reproduce
- npm install -g cdktf-cli && npm install -g cdktf
- In an empty dir, run
cdktf init --template="typescript" --providers="aws"
Here's the log:
cdktf init --template="typescript" --providers="aws"
? Project Name dd_alert_forwarder
? Project Description A simple getting started project for cdktf.
? Would you like to use Terraform Cloud? yes
Detected Terraform Cloud token.
We will now set up Terraform Cloud for your project.
? Terraform Cloud Organization Name <redacted>
We are going to create a new Terraform Cloud Workspace for your project.
? Terraform Cloud Workspace Name dd_alert_forwarder
? Do you want to start from an existing Terraform project? no
Setting up a Cloud Backend for your project.
? Do you want to send crash reports to the CDKTF team? Refer to
https://developer.hashicorp.com/terraform/cdktf/create-and-deploy/configuration-file#enable-crash-reporting-for-the-cli for more information yes
Generating Terraform Cloud configuration for 'redacted' organization and 'dd_alert_forwarder' workspace.....
added 2 packages, and audited 102 packages in 5s
28 packages are looking for funding
run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
added 325 packages, and audited 427 packages in 38s
60 packages are looking for funding
run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
========================================================================================================
Your CDKTF TypeScript project is ready!
cat help Print this message
Compile:
npm run get Import/update Terraform providers and modules (you should check-in this directory)
npm run compile Compile typescript code to javascript (or "npm run watch")
npm run watch Watch for changes and compile typescript in the background
npm run build Compile typescript
Synthesize:
cdktf synth [stack] Synthesize Terraform resources from stacks to cdktf.out/ (ready for 'terraform apply')
Diff:
cdktf diff [stack] Perform a diff (terraform plan) for the given stack
Deploy:
cdktf deploy [stack] Deploy the given stack
Destroy:
cdktf destroy [stack] Destroy the stack
Test:
npm run test Runs unit tests (edit __tests__/main-test.ts to add your own tests)
npm run test:watch Watches the tests and reruns them on change
Upgrades:
npm run upgrade Upgrade cdktf modules to latest version
npm run upgrade:next Upgrade cdktf modules to latest "@next" version (last commit)
Use Providers:
You can add prebuilt providers (if available) or locally generated ones using the add command:
cdktf provider add "aws@~>3.0" null kreuzwerker/docker
You can find all prebuilt providers on npm: https://www.npmjs.com/search?q=keywords:cdktf
You can also install these providers directly through npm:
npm install @cdktf/provider-aws
npm install @cdktf/provider-google
npm install @cdktf/provider-azurerm
npm install @cdktf/provider-docker
npm install @cdktf/provider-github
npm install @cdktf/provider-null
You can also build any module or provider locally. Learn more https://cdk.tf/modules-and-providers
========================================================================================================
[2025-09-16T10:16:50.631] [INFO] default - Checking whether pre-built provider exists for the following constraints:
provider: aws
version : latest
language: typescript
cdktf : 0.21.0
Pre-built provider information not found
Error: Pre-built provider information not found
at HXt (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:2716)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:2207)
at async UP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:3042)
at async YP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:4088)
at async VN.hasPrebuiltProvider (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:172:183)
at async VN.addProvider (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:8837)
at async Mse (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:173:2071)
at async ojt (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:173:140)
at async kze (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:513:2980)
Collecting Debug Information...
/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Pre-built provider information not found
at HXt (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:2716)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:2207)
at async UP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:3042)
at async YP (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:4088)
at async VN.hasPrebuiltProvider (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:172:183)
at async VN.addProvider (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:167:8837)
at async Mse (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:173:2071)
at async ojt (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:173:140)
at async kze (/Users/name/.nvm/versions/node/v20.12.2/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:513:2980)
Node.js v20.12.2
Versions
language: typescript
cdktf-cli: 0.21.0
node: v20.12.2
cdktf: 0.21.0
constructs: 10.4.2
jsii: null
terraform: 1.9.8
arch: arm64
os: darwin 23.6.0
providers
Providers
cdktf provider list
┌┐
││
└┘
since it's cdktf init
in an empty dir, there is no provider list.
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
elovelan, Sueysz, jwharris38, EmekaNnaji and HackedRico
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnewUn-triaged issueUn-triaged issuepre-built providersIssues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-managerIssues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager