terraform output command reference | Terraform | HashiCorp Developer

The `terraform output` command extracts the value of an output variable from the state file.