How to reboot EC2 instance


I have created an EC2 instance with cdktf in ts. how can i reboot this instance with cdktf ? or we can say stop and start the instance in order in one call ?

This SO post might get you there.
You’d definitely need to use escape hatches to use this technique.

1 Like