terraform output

From wikieduonline
Revision as of 19:59, 23 October 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search

Examples

terraform output
kubernetes_cluster_host = "35.225.206.41"
kubernetes_cluster_name = "cluster-name-gke"
project_id = "your-project"
region = "us-central1"
terraform output your_var
terraform output -raw region
us-east-2%
terraform output -raw region
us-east-1%
terraform output -raw cluster_name
education-eks-Ry318DCv%


terraform output -raw region
╷
│ Warning: No outputs found
│
│ The state file either has no outputs defined, or all the defined outputs are
│ empty. Please define an output in your configuration with the `output`
│ keyword and run `terraform refresh` for it to become available. If you are
│ using interpolation, please verify the interpolated value is not empty. You
│ can use the `terraform console` command to assist.
╵



Related commands

See also

Advertising: