Multinode computer

Hi
I want to create a multi-node Ubuntu instance and java installed. Looking for a terraform code to accomplish the same.

Any help in this regard much appreciated.