-
Notifications
You must be signed in to change notification settings - Fork 48
feat(terraform): make model deployments configurable via variable #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -28,6 +28,44 @@ variable "sku" { | |||||||||||||||||||||||||||||||||
| default = "S0" | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| variable "model_deployments" { | ||||||||||||||||||||||||||||||||||
| description = "The list of model deployments to create in AI Foundry." | ||||||||||||||||||||||||||||||||||
| type = list(object({ | ||||||||||||||||||||||||||||||||||
| name = string | ||||||||||||||||||||||||||||||||||
| version = string | ||||||||||||||||||||||||||||||||||
| format = string | ||||||||||||||||||||||||||||||||||
| sku = optional(object({ | ||||||||||||||||||||||||||||||||||
| name = string | ||||||||||||||||||||||||||||||||||
| capacity = number | ||||||||||||||||||||||||||||||||||
| }), { | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+40
|
||||||||||||||||||||||||||||||||||
| type = list(object({ | |
| name = string | |
| version = string | |
| format = string | |
| sku = optional(object({ | |
| name = string | |
| capacity = number | |
| }), { | |
| type = list(object({ | |
| name = string | |
| version = string | |
| format = string | |
| sku = optional(object({ | |
| name = string | |
| capacity = number | |
| }), { |
Copilot
AI
Feb 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding validation to model_deployments to catch common misconfiguration early (e.g., unique deployment names, non-empty strings, and sku.capacity > 0). Repo Terraform standards call out adding validation in reference architectures when constraints are known (.github/guidance/terraform/terraform-standards.md around the reference-architecture conventions).
Copilot
AI
Feb 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default model list here changes behavior vs the previous hard-coded deployments: it now deploys gpt-5-chat (2025-10-03) instead of the previously configured gpt-5.2-chat (2025-12-11). If the goal is only to make deployments configurable (without changing defaults), update the default entry to match the prior model/version (and apply consistently across the other reference architectures updated in this PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
model_deployments = var.model_deployments, thecommon_modelsmodule in this stack is now unused (itβs only declared, never referenced). Suggest either removing themodule "common_models"block (and letting terraform-docs drop it from the README), or re-introducing it via alocal.default_model_deploymentsfallback so model versions stay centrally maintained while still allowing overrides.