Can you confirm that terraform has set both environment variables? it looks the second one wasn’t set.

Ah i think you need to provide the env for HF_TASK as well in the terraform example. there is no env var defined.