You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`dir` (String) The starting directory when a user creates a shell session. Defaults to $HOME.
52
52
-`env` (Map of String) A mapping of environment variables to set inside the workspace.
53
53
-`login_before_ready` (Boolean) This option defines whether or not the user can (by default) login to the workspace before it is ready. Ready means that e.g. the startup_script is done and has exited. When enabled, users may see an incomplete workspace when logging in.
54
+
-`metadata` (Block List) Each "metadata" block defines a single item consisting of a key/value pair. This feature is in alpha and may break in future releases. (see [below for nested schema](#nestedblock--metadata))
54
55
-`motd_file` (String) The path to a file within the workspace containing a message to display to users when they login via SSH. A typical value would be /etc/motd.
55
56
-`shutdown_script` (String) A script to run before the agent is stopped. The script should exit when it is done to signal that the workspace can be stopped.
56
57
-`shutdown_script_timeout` (Number) Time in seconds until the agent lifecycle status is marked as timed out during shutdown, this happens when the shutdown script has not completed (exited) in the given time.
Description: "This option defines whether or not the user can (by default) login to the workspace before it is ready. Ready means that e.g. the startup_script is done and has exited. When enabled, users may see an incomplete workspace when logging in.",
139
139
},
140
+
"metadata": {
141
+
Type: schema.TypeList,
142
+
Description: "Each \"metadata\" block defines a single item consisting of a key/value pair. This feature is in alpha and may break in future releases.",
143
+
ForceNew: true,
144
+
Optional: true,
145
+
Elem: &schema.Resource{
146
+
Schema: map[string]*schema.Schema{
147
+
"key": {
148
+
Type: schema.TypeString,
149
+
Description: "The key of this metadata item.",
150
+
ForceNew: true,
151
+
Required: true,
152
+
},
153
+
"display_name": {
154
+
Type: schema.TypeString,
155
+
Description: "The user-facing name of this value.",
156
+
ForceNew: true,
157
+
Optional: true,
158
+
},
159
+
"cmd": {
160
+
Type: schema.TypeString,
161
+
Description: "The command that retrieves the value of this metadata item.",
162
+
ForceNew: true,
163
+
Required: true,
164
+
},
165
+
"interval": {
166
+
Type: schema.TypeString,
167
+
Description: "The interval duration at which to refresh this metadata item. ",
0 commit comments