The module has no output with that name
CommonResources inside a module are private. module.NAME.X works only if the module has output "X".
Confirm
grep -rn 'output "' path/to/module/*.tf
No output with the name you referenced
Fix
- Add an output block to the module that returns the value, then reference module.NAME.OUTPUT.
output "subnet_id" {
value = aws_subnet.this.id
}In the module. Reproduced with a local module on Terraform 1.14.0.