Cdk terraform automate remotebackend instead of manual


Can’t find to automate remotebackend on cdktf instead of running manual cdktf init and then enter all your token,org,workspaces manually?


This is currently the nicest way, the token only needs to be set the first time around.

If you plan to have a lot of workspaces you could check out DanielMSchmidt/cdktf-multi-stack-tfe, it’s a construct I built to manage TFE workspaces centrally in one stack and all other stacks are created on the fly. There are a few problems though, so you need to be cautious (e.g. if you destroy the base stack where all your TFE workspaces originate from they are going to be deleted and the data is lost)