Hi,
I’m starting to explore with CDKTF using Go building a simple app that spawns docker container through REST API requests utilizing kreuzwerker/docker provider.
Is there any better way to synthesize and apply the stack in my application without explicit calling exec cdktf apply or terraform apply?
Because that would mean that the host of the application would have to have either CDKTF CLI or Terraform binary installed in the system.
Why can’t I just app.Synth()
and app.Apply("./cdktf.out/stacks/go/cdk.tf.json")
?
Or is there any way to compile CDKTF CLI or Terraform binary inside the application and call the methods?
Thanks!