Terraform and front application

Hello,
Am having a use case for production environnement we are working on a project which aims to fully automate the creation of virtual machine on vmware and openstack using terraform, we are in phase to developping scripts and test phase, the next is to find a way to integrate the terraform with the application (backend frontend) with spring and angular.

The objectiv here is to be to launch the process of creation from the application frontend interface ( user will request a virtual machine by passing it’s name network config … Those are inputs for terraform code)
What i think of is to integrate terraform in a playbook with Redhat ansible automation platforme but am thingking if this is the best way or there is a better way for prod env…