Overview
Blocks are the interactive components of a runbook.mdx file. Write them as JSX tags within your markdown.
Available blocks
Section titled “Available blocks”- Admonition
- AwsAuth
- Check
- Command
- DirPicker
- GitAuth
- GitClone
- GitHubAuth
- GitHubPullRequest
- GitLabAuth
- GitLabMergeRequest
- GitPullRequest
- GoogleAuth
- Iframe
- Inputs
- Template
- TemplateInline
Block IDs
Section titled “Block IDs”Interactive blocks take an id prop, a unique identifier for the block. When one block references another, it does so by the other block’s ID:
inputsIduses the values collected by an<Inputs>or<Template>block. See Wiring blocks withinputsId.awsAuthId,googleAuthId,gitAuthIdandgithubAuthIdchoose which auth block’s credentials a block uses.gitCloneIdroots a<DirPicker>in the repository a<GitClone>block cloned.{{ .outputs.<block_id>.<output_name> }}reads the outputs of a block that has already run. In template syntax, write any hyphens in the ID as underscores. See Block outputs.
Each ID must be unique within a runbook. IDs that differ only in hyphens versus underscores (such as create-account and create_account) count as the same ID.
Runbook tests use IDs too: each step in runbook_test.yml names the block it runs by its ID. See Testing.
In Runbooks, most blocks show a small ID badge in their top-right corner. <TemplateInline> doesn’t, and neither does an <Inputs> block nested inside another block. Hover over the badge (or Tab to it) to see the block’s ID, and click it to copy the ID to your clipboard.