Files
coder/provisioner
George K de25ad6a4f feat(provisioner/terraform): allow script selectors with zero instances (#29810)
Accept an unindexed `coder_script` selector as a no-op when the
resource is declared in Terraform configuration but has no evaluated
instances. This supports scripts conditionally disabled through
`count` or `for_each` and aligns their behavior with declared module
calls that expand to no scripts.

Continue rejecting undeclared resources and indexed selectors whose
requested instance does not exist. Add coverage for root and repeated
modules, mixed empty and resolved selectors, and strict
indexed-instance validation.

Refs:
https://linear.app/codercom/issue/PLAT-668
2026-09-23 21:51:39 -07:00
..