-
Notifications
You must be signed in to change notification settings - Fork 459
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
Import from Terraform doesn't pass config to TerraformHclModule correctly #860
Comments
I spiked into converting modules as well just to get a feeling for how hard it would be. It's quite some effort I am afraid since they can be used recursively and we would need to get the type information about the interface. It's not undoable, but there is quite some handling that is different from the normal conversion (inputs, outputs, etc.). My POC branch is |
I'll take a look at your branch when I get a chance. |
The code generation for modules can be found here. We already check if it's a local / registry module, so this part is all that needs change:
One problem is that the |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
Latest build from main
Affected Resource(s)
Modules not from registry
Expected Behavior
configuration passed to modules passed in variables map
Actual Behavior
Configuration values are passed to directly in configuration object
Steps to Reproduce
The text was updated successfully, but these errors were encountered: