Outputs Section
Output section defines the outputs that the Terraform module produces. Each output is also defined as a key-value pair, where the key is the name of the output, and the value is an object describing the output.
Within each output object:
- type: This field denotes the kind of data the module produces for that output. For example, if the type is @outputs/databricks_account, this output can be utilized as an input of this type in another module.
- providers: This field identifies the provider(s) relevant to the output. It includes additional details about the provider:
- source: Specifies the origin of the provider.
- version: Indicates the version of the provider being used.
- attributes: Enumerates the specific pieces of data that the output will return. This information about the provider can be used to configure resources in other Terraform modules, enhancing the module’s interoperability.
Example:
outputs:
default:
type: "@outputs/databricks_account"
providers:
databricks:
source: databricks/databricks
version: 1.59.0
attributes:
host: attributes.host
account_id: attributes.account_id
client_id: attributes.client_id
client_secret: attributes.client_secret
Updated about 24 hours ago