Hi,
This is my first post here, so I apologise if I’m missing any structure required for forum posts.
When I run npx cdktf diff sr-test
the following error is produced:
│ Error: Backend configuration changed
│
│ A change in the backend configuration has been detected, which may require
│ migrating existing state.
│
│ If you wish to attempt automatic migration of the state, use "terraform init
│ -migrate-state".
│ If you wish to store the current configuration with no changes to the state,
│ use "terraform init -reconfigure".
My issue is that I cannot figure out how to perform these terraform commands via CDKTF. Running the suggested terraform command throws the following error:
Terraform initialized in an empty directory!
The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.
zsh: command not found: │
I looked through the hashicorp forums and couldn’t find anyone who has ran into this issue and has had a solution presented, I also couldn’t find much information at all about the cdktf equivalent of terraform commands.
I have been deploying resources via the AWS Console and have refactored my cdktf project quite a lot, but I figured there should be some way of resolving these conflicts beyond delete the s3 backend and recreating it.
Thanks!