> ## Documentation Index
> Fetch the complete documentation index at: https://tfts.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TerraformRemoteState

> Access outputs from other Terraform stacks.

`TerraformRemoteState` allows you to read output values from a remote Terraform state file.

## Methods

### get()

```typescript theme={null}
get(name: string): any
```

Returns a remote state output value.

### getString()

```typescript theme={null}
getString(name: string): string
```

Returns a remote state output value as a string.

### getNumber()

```typescript theme={null}
getNumber(name: string): number
```

Returns a remote state output value as a number.

### getList()

```typescript theme={null}
getList(name: string): string[]
```

Returns a remote state output value as a list of strings.

### getBoolean()

```typescript theme={null}
getBoolean(name: string): boolean
```

Returns a remote state output value as a boolean.

## Remote State Classes

Each backend has a corresponding remote state class:

### DataTerraformRemoteStateLocal

```typescript theme={null}
new DataTerraformRemoteStateLocal(scope: Construct, id: string, config: LocalBackendConfig)
```

### DataTerraformRemoteStateS3

```typescript theme={null}
new DataTerraformRemoteStateS3(scope: Construct, id: string, config: S3BackendConfig)
```

### DataTerraformRemoteStateGcs

```typescript theme={null}
new DataTerraformRemoteStateGcs(scope: Construct, id: string, config: GcsBackendConfig)
```

### DataTerraformRemoteStateRemote

```typescript theme={null}
new DataTerraformRemoteStateRemote(scope: Construct, id: string, config: RemoteBackendConfig)
```

### DataTerraformRemoteStateCloud

```typescript theme={null}
new DataTerraformRemoteStateCloud(scope: Construct, id: string, config: CloudBackendConfig)
```
