Documentation Index
Fetch the complete documentation index at: https://tfts.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TerraformRemoteState allows you to read output values from a remote Terraform state file.
Methods
get()
Returns a remote state output value.
getString()
getString(name: string): string
Returns a remote state output value as a string.
getNumber()
getNumber(name: string): number
Returns a remote state output value as a number.
getList()
getList(name: string): string[]
Returns a remote state output value as a list of strings.
getBoolean()
getBoolean(name: string): boolean
Returns a remote state output value as a boolean.
Remote State Classes
Each backend has a corresponding remote state class:
new DataTerraformRemoteStateLocal(scope: Construct, id: string, config: LocalBackendConfig)
new DataTerraformRemoteStateS3(scope: Construct, id: string, config: S3BackendConfig)
new DataTerraformRemoteStateGcs(scope: Construct, id: string, config: GcsBackendConfig)
new DataTerraformRemoteStateRemote(scope: Construct, id: string, config: RemoteBackendConfig)
new DataTerraformRemoteStateCloud(scope: Construct, id: string, config: CloudBackendConfig)