Back to Developer Roadmap

Output Syntax

src/data/roadmaps/terraform/content/[email protected]

4.01019 B
Original Source

Output Syntax

Terraform output syntax is used to define values that should be made accessible after applying a Terraform configuration. The basic syntax is:

hcl
output "name" {
  value = expression
  description = "Optional description"
  sensitive = bool
}

name is a unique identifier for the output. value is the expression whose result will be output. description is optional and provides context. sensitive is a boolean flag to mark sensitive data.

Learn more from the following resources: