Files
acdl/consumer-repos/acdl-consumer-microservice/README.md
T
Jon Chery 699aa542df docs(P15): plan-as-execute + verify (v1.2.5, PARTIAL — terraform apply blocked by IAM)
---ci---
project: acdl
phase: 15
milestone: v1.2
status: verify
verdict: PARTIAL
requirements:
  covered: [REQ-34]
  partial: [REQ-33]
blocker:
  - id: P0-IAM
    description: terraform apply fails with AccessDenied on ECS/ECR/IAM/EC2 — live spike_runner_policy.json not pushed (root key deactivated per D-034)
    unblock: operator runs create_iam_user.py with root/admin creds to push the expanded policy, then terraform apply succeeds (plan valid, 13 to add)
---/ci---

Phase 15 plan-as-execute + verify. PARTIAL: terraform apply blocked by IAM.
- Consumer microservice content authored (app.py + Dockerfile + README.md).
- Docker image acdl-microservice:latest built.
- Adapter fixed: ref emission (bare), JSON-string jsonencode, ECS service
  network_configuration/load_balancer/desired_count/launch_type/task_definition,
  listener default_action/load_balancer_arn, target group target_type/vpc_id/protocol,
  VPC tags (not name), IGW + route table association, managed_policy_arns list.
- L1 fixes: l1-ecs-service (removed port from service sub-resource),
  l1-vpc (added intra_refs, removed igw_id output).
- Resolver: intra_refs resolution (refs between sub-resources of same L1).
- terraform validate + plan succeed (13 to add).
- terraform apply BLOCKED (AccessDenied — live IAM policy not updated).
- Evidence event TERRAFORM_APPLY_BLOCKED written to DynamoDB outbox.
- v1.1 S3 regression: byte-identical.
Ready to ship v1.2.5 (partial).
2026-07-21 22:21:36 +00:00

1.1 KiB

acdl-consumer-microservice

A basic HTTP microservice for the ACDL v1.2 milestone. Returns 200 on / and /health with a JSON status body. Deployed to AWS ECS Fargate via the ACDL platform's l2-microservice contract.

Build + push to ECR

# Build
docker build -t acdl-microservice .

# Tag for ECR
docker tag acdl-microservice:latest 581513795199.dkr.ecr.us-east-1.amazonaws.com/acdl-microservice:latest

# Authenticate to ECR
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 581513795199.dkr.ecr.us-east-1.amazonaws.com

# Push
docker push 581513795199.dkr.ecr.us-east-1.amazonaws.com/acdl-microservice:latest

Contract

The contract submission is at contracts/microservice.yaml (or the platform's contracts/microservice.yaml). Submitting it to the ACDL pipeline triggers: contract → IR resolution → terraform planterraform apply (dev) → a live ECS Fargate service.

Endpoints

  • GET / — 200, {"status":"ok","service":"acdl-microservice","version":"1.0.0"}
  • GET /health — 200, same body
  • any other path — 404