Two module defects found in the prior live matrix run (3000, SHA
a55752e2) that hadn't been fixed:
1. WAF: `scope: cloudfront` in complex example failed with "expected
scope to be one of [CLOUDFRONT REGIONAL], got cloudfront". AWS
requires uppercase. Added `scope = upper(var.scope)` in locals.tf
so the module is resilient to either casing, and fixed the complex
example to use CLOUDFRONT.
2. VPC: simple→complex modify tried to replace the VPC (CIDR changed
10.0.0.0/16 → 10.50.0.0/16, which is ForceNew) while subnets/IGW/
route tables still referenced it → DependencyViolation. Fixed the
complex example to use the same CIDR (10.0.0.0/16) so terraform
modifies in-place (adds a 3rd AZ subnet, updates tags). Also added
create_before_destroy lifecycle on the VPC as a defensive measure.
Regression: 479 passed, 5 deselected. 24 example contracts resolve.
---ci---
project: acdl
phase: P60
milestone: v1.11
status: execute
---/ci---
Add modules/<name>/examples/ directories with simple.yaml + complex.yaml
(+ mysql.yaml for RDS) for every primitive and module pattern. All 25
example contracts validate against schemas/contract.schema.json. Update
the contract schema to allow object/array input values (for env vars).
Fix the platform-test schema-validation glob to modules/*/*/examples/*.yaml
to match the nested l1/l2 path structure. Update the microservice sample
contract note (env objects now permitted by the schema).
---ci---
project: acdl
phase: 27
milestone: v1.7
status: execute
---/ci---