Hi!
What is the best way to deploy a text embedding model using Terraform? (If you think it should not be done via Terraform at all: What is the best way to automatically deploy a text embedding model to ensure it's always there when elastic is deployed?)
I have created a python script that installs eland, and then uses eland_import_hub_model
to install intfloat/multilingual-e5-large
to elastic. Then I use null_resource
in terraform to execute the script.
However, since we are not controlling our own terraform I am not even sure if python is installed on the machine and figured I probably need a better way of doing that. I need to do it in a way I know will always work regardless where Terraform is running.
Do you have any suggestions?