Deploy with Terraform
Prefer infrastructure-as-code? This Terraform module provisions everything a Sarvam endpoint needs — the IAM execution role, the model (from your Marketplace package ARN), the endpoint configuration, and the endpoint — in a single terraform apply. It works for Saaras v3, Bulbul v3, and Sarvam Vision; just point model_package_arn at the right package (all three run on ml.g6e.xlarge by default).
Prerequisites
- Terraform 1.5+ and AWS credentials configured.
- An active Marketplace subscription and the model package ARN for your region.
Variables
Main configuration
Deploy
Once apply finishes and the endpoint reaches InService, invoke it exactly as in the Deploy Saaras v3 or Deploy Vision guides.
For async endpoints, add an async_inference_config block (with an S3 output path) to the endpoint configuration and attach S3 permissions to the execution role. Add an aws_appautoscaling_target / aws_appautoscaling_policy pair to autoscale — including scale-to-zero for async.