Using Terraform to dynamically manage cloudscale.ch GPU resources
Terraform example to spawn a cloudscale.ch GPU instance on-demand, connect a persistant data volume, launch ComfyUI living on that persistent volume, and providing the user with the SSH port-forwarding command to access the ComfyUI instance at http://127.0.0.1:8818
Teardown and deletion of the pricey GPU instance with a single command, while leaving the data volume intact for future use.
export CLOUDSCALE_API_TOKEN='d34db33f'terraform initterraform apply
terraform apply -var gpu=false