Terraform is not the only software used to do infrastructure as code. Another well known tool is called pulumi.
infrastructure as code
pulumi
So your next challenge is to spawn a demo-flask app within your openstack or kubernetes using pulumi!
demo-flask
openstack
kubernetes