tf-Output-Syntax


tags:

  • ready
  • online
  • terraform
  • IaC
  • infrastructure

Output Syntax

Contents

Roadmap info from [ roadmap website ] (<https://roadmap.sh/terraform/output > syntax@31fa8kBzCEn-uCrTSoPM4)

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

                                      ```terraform
                                      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.