An output exposes a computed value of a Terraform configuration: a server's address, a resource identifier. It is displayed after apply, can be read with terraform output, and lets a module pass its results to its caller. It can be marked sensitive.
Example
output "bucket_arn" { value = aws_s3_bucket.logs.arn }