モジュールmodでoutput.tf書いて
mod ├── main.tf ├── output.tf ├── variables.tf └── versions.tf
output "instance_ip_addr" { value = aws_instance.server.private_ip description = "The private IP address of the main server instance." }
別モジュールで呼び出す
module "foo" { source = "./mod" }