Is there a terraform refresh
or terraform apply -refresh-only
equivalent for cdktf
? Just running cdktf deploy
doesn’t seem to pick up resources that have been created prior to the cdktf
tool exiting (with error code 1
)
There is no built-in refresh command (I created an issue for that: https://github.com/hashicorp/terraform-cdk/issues/1544). As a workaround you can run cdktf synth
, cd
into your stacks directory e.g. cd ./cdktf.out/stacks/my-stack
and run terraform refresh
from there.