New Terraform Tutorial: Terraform Outputs
Use Outputs to Export Configuration Data
Below is a code example showing how you define output blocks to export structured data from your Terraform configuration.
When you apply this configuration, Terraform will print out these values to the command line. You can also use outputs to connect Terraform configuration, either through the use of modules, or separate workspaces.
Redact Sensitive Outputs
Sometimes you need to share data between Terraform modules or workspaces that includes sensitive information such as usernames and passwords. Terraform outputs support the sensitive
flag, which will redact these values in console output and log messages.
When Terraform prints out these values, it will redact them as <sensitive>
.
Try the new hands-on tutorial: Output Data From Terraform.
Happy Terraform Learning!!!!!!!
Comments
Post a Comment