Terminal
Terminal
The terminal
resource represents a target that a tab in the layout can point at.
It contains all the configuration that the terminal session needs to start.
resource "terminal" "name" {
...
}
Attributes
Target target
required
type: Reference to Container
A reference to the resource the terminal is attached to.
target = resource.container.ubuntu
Shell shell
type: string
The shell the terminal will use.
shell = "/bin/sh"
User user
type: string
The user the terminal will run as.
user = "root"
Group group
type: string
The group the terminal will run as.
group = "root"
WorkingDirectory working_directory
type: string
The working directory the terminal will start in.
working_directory = "/root"
Command command
type: []string
The command the terminal will run.
command = ["/bin/tail", "-f", "/dev/null"]
Computed Attributes
These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
// given the following resource
resource "container" "ubuntu" {
...
}
// the resulting id will be
resource.container.ubuntu
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
// given the following resource
resource "container" "ubuntu" {
...
}
// the resulting type will be
container
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.
// given the following resource
resource "container" "ubuntu" {
...
}
// the resulting name will be
ubuntu
Last updated