# saif-resources / ai-project

Creates an Azure AI Foundry project under the shared AI Hub with optional model deployments.

## Usage

```hcl
module "ai_project" {
  source  = "app.terraform.io/SAIFCorp/resources/saif//modules/ai-project"
  version = "~> 1.0.0"

  context  = module.environment.context
  name     = var.project_id
  location = "westus"

  model_deployments = {
    chat = {
      model_name    = "gpt-5.6-luna"
      model_version = "2026-07-09"
      sku_capacity  = 30
    }
  }
}
```

> **Note**: Use short logical keys (e.g. `chat`). The module prefixes them with `var.name`
> internally to produce the actual Azure deployment name (`{name}-chat`). Access the
> resolved names via `module.ai_project.deployment_names["chat"]`.

<!-- BEGIN_TF_DOCS -->
## Providers

No providers.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_context"></a> [context](#input\_context) | Platform context from the environment module | `any` | n/a | yes |
| <a name="input_location"></a> [location](#input\_location) | The Azure region for AI model deployments (may differ from resource\_location due to model availability) | `string` | `"westus"` | no |
| <a name="input_model_deployments"></a> [model\_deployments](#input\_model\_deployments) | Map of model deployment configurations | <pre>map(object({<br/>    model_format  = optional(string, "OpenAI")<br/>    model_name    = string<br/>    model_version = string<br/>    sku_name      = optional(string, "GlobalStandard")<br/>    sku_capacity  = optional(number, 30)<br/>  }))</pre> | `{}` | no |
| <a name="input_name"></a> [name](#input\_name) | The AI project name (e.g. project\_id) | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_deployment_names"></a> [deployment\_names](#output\_deployment\_names) | Map of logical deployment key to actual Azure deployment name (e.g. 'chat' => '{name}-chat') |
| <a name="output_project_id"></a> [project\_id](#output\_project\_id) | The AI project resource ID |

## Resources
    
<!-- END_TF_DOCS -->

---

[View source on GitHub](https://github.com/saif-corp/forge/blob/main/src/terraform/saif-resources/modules/ai-project/README.md)
