Files
acdl/modules-ir/l1/l1-ecs-cluster
Jon Chery 4ed2542ecf docs(P13): plan-as-execute + verify (v1.2.3)
---ci---
project: acdl
phase: 13
milestone: v1.2
status: verify
verdict: VERIFIED
requirements:
  covered: [REQ-31]
---/ci---

Phase 13 plan-as-execute + verify. scripts/verify_phase13.sh green.
6 ECS L1s authored + registered (l1-vpc, l1-ecs-cluster, l1-ecs-service,
l1-iam-role, l1-alb, l1-ecr). Adapter generalized to table-driven
TYPE_MAP (12 IR types) + INPUT_MAP + OUTPUT_MAP. S3 regression: the v1.1
spike l1-s3 produces byte-identical main.tf. Ready to ship v1.2.3.
2026-07-21 21:05:48 +00:00
..

l1-ecs-cluster — ECS Fargate cluster primitive

An L1 module for an ECS Fargate cluster. Single-purpose, substrate-agnostic (the IR type is aws:ecs:cluster, not a Terraform resource type).

Interface (the IR-typed contract)

See interface.json: inputs name + region (strings), outputs cluster_arn (arn) + cluster_id (string), 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:ecs:cluster resource "aws_ecs_cluster" "<id>" { ... }
resource.inputs.name name = <value> arg
resource.inputs.region provider "aws" { region = <value> }
resource.outputs.cluster_arn output "cluster_arn" { value = aws_ecs_cluster.<id>.arn }
resource.outputs.cluster_id output "cluster_id" { value = aws_ecs_cluster.<id>.id }

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.