Virtual Browser
The virtual_browser resource adds an embedded virtual browser tab for web-based interactions within a lab. Use it to give learners a browser inside the lab UI, pointed at a URL you control, without relying on their local browser.
HCL Syntax
Section titled “HCL Syntax”Basic Syntax
Section titled “Basic Syntax”resource "virtual_browser" "docs" { url = "https://example.com"}Fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | ✓ | The web address to display in the embedded browser tab. |
agent | string | — | Custom user agent string for the virtual browser Allowed firefox |
Examples
Section titled “Examples”Load an external site
Section titled “Load an external site”resource "virtual_browser" "console" { url = "https://console.example.com"}Add the virtual browser to a layout tab to surface it to learners.
