Back to Oh My Posh

Pulumi

website/docs/segments/cloud/pulumi.mdx

29.12.01.7 KB
Original Source

What

Display the currently active Pulumi logged-in user, url and stack.

:::caution This requires a pulumi binary in your PATH and will only show in directories that contain a Pulumi.yaml file. :::

Sample Configuration

import Config from "@site/src/components/Config.js";

<Config data={{ type: "pulumi", style: "diamond", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#662d91", template: "\ue873 {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}", }} />

Options

NameTypeDefaultDescription
fetch_stackbooleanfalsefetch the current stack name
fetch_aboutbooleanfalsefetch the URL and user for the current stask. Requires fetch_stack set to true

Template (info)

:::note default template

template
\ue873 {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}

:::

Properties

NameTypeDescription
.Stackstringthe current stack name
.Userstringis the current logged in user
.Urlstringthe URL of the state where pulumi stores resources