Create a security group and a EC2 instance on Amazon AWS cloud with Terraform
Create ssh connectivity, move public key to server
Connect via ssh
Install JVM on server with provisioner 'remote-exec'
Copy Java code to server with provisioner 'file'
Run Java program
Download result file with SFTP
Terraform, AWS, Java, SSH, SFTP
Run:
terraform apply