# l1-ecr — ECR repository primitive An L1 module for an ECR repository that hosts the ECS task image. Single-purpose, substrate-agnostic (the IR type is `aws:ecr:repository`, not a Terraform resource type). ## Interface (the IR-typed contract) See `interface.json`: inputs `name` + `region` (strings), outputs `repository_url` (string) + `repository_arn` (arn), no NFRs. ## IR → Terraform mapping (performed by the adapter) The Terraform adapter (`adapters/terraform/adapter.py`) translates this L1's IR shape to Terraform: | IR | Terraform | |----|-----------| | `resource.type = aws:ecr:repository` | `resource "aws_ecr_repository" "" { ... }` | | `resource.inputs.name` | `name = ` arg | | `resource.inputs.region` | `provider "aws" { region = }` | | `resource.outputs.repository_url` | `output "repository_url" { value = aws_ecr_repository..repository_url }` | | `resource.outputs.repository_arn` | `output "repository_arn" { value = aws_ecr_repository..arn }` | The adapter is a thin layer (ARCHITECTURE.md §12.2); it does not own L1 content — it only translates. ## Versioning (W3.D) `1.0.0` — interface MAJOR, behavior MINOR, lifecycle PATCH. MAJOR bumps require a new registry entry (immutable publication); old entries enter a 12-month deprecation window.