Choose module keys that survive changing inventory
Try this labAll TERRAFORM-004 practice
- Certification
- TERRAFORM-004
- Format
- Structured configuration
- Difficulty
- medium
- Estimated time
- 25 min
- Automated checks
- 9
SCENARIO
Two worker objects already exist under a module call that uses inventory position for identity. Display names, ordering and membership change, while surviving workers must keep their physical identities. The JSON handoff records the input contract, initial bindings and independent changes.
TASK
Repair workers.tf.json so every supplied inventory record remains declared and every surviving worker retains its physical ID through all recorded changes.
- Retire only removed workers and create only new workers.
- Preserve the child source and each complete service input.
- Tests replay identities and plan actions locally; no provider or apply runs.