Repair a Terraform module's input contract

Try this labAll TERRAFORM-004 practice

Certification
TERRAFORM-004
Format
Artifact workspace
Difficulty
easy
Estimated time
20 min
Automated checks
7

SCENARIO

A service module accepts invalid caller values, exposes a hardcoded count and displays an unmarked token. Consumers need the interface recorded in inputs.tf before the module enters the shared registry.

TASK

Repair inputs.tf to satisfy its consumer contract: accept all valid converted inputs, reject invalid values and preserve the supplied output values and sensitivity.

  • Keep the three inputs and three outputs.
  • Tests replay caller inputs locally; no provider or apply runs.

Part of TERRAFORM-004 preparation