Possible workarounds:
-
Once the .tf.json is generated by
cdktf synthor the .tf file bycdktf synth --hcl, you can use the plain oldterraformcommand line interface with it. Just change to the directory it’s in and runterraform init -migrate-state. Here’s an example explanation for changing directory and runningterraform import: How to import already created AWS resources in TF CDK - #11 by DanielMSchmidt -
You may be able to find the difference in the backend configuration and remove it if it’s unnecessary. I used
.add_override()recently to get to CDKTF first, and migrate state later.
I use CDKTF extensively as a Python to HCL conversion library but stick with terraform on the command line (I don’t think it’s broken or in need of replacement).