Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| devops:xhr:pulumi-go:0_getting_started [2025/10/08 17:04] – created td | devops:xhr:pulumi-go:0_getting_started [2025/10/15 11:48] (current) – [GKE - Pulumi - Golang] td | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # GKE - Pulumi - Golang | + | # Pulumi - Golang |
| * https:// | * https:// | ||
| + | |||
| + | ## Pulumi quick commands | ||
| + | |||
| + | ### Start new stack | ||
| + | ``` | ||
| + | # Clone the repository | ||
| + | git clone https:// | ||
| + | cd pulumiInfraProxmox | ||
| + | |||
| + | # Install dependencies | ||
| + | go mod download | ||
| + | |||
| + | # Configure Pulumi stack | ||
| + | pulumi stack init dev | ||
| + | |||
| + | # Set environment variables | ||
| + | export PROXMOX_VE_ENDPOINT=" | ||
| + | export PROXMOX_VE_USERNAME=" | ||
| + | export PROXMOX_VE_PASSWORD=" | ||
| + | export PROXMOX_VE_SSH_PRIVATE_KEY=" | ||
| + | export SSH_PUBLIC_KEY=" | ||
| + | |||
| + | # Deploy infrastructure with feature flags | ||
| + | pulumi up | ||
| + | ``` | ||
| + | ### Delete resources | ||
| + | |||
| + | Remove out of sync resources from state (manually deleted, not using " | ||
| + | |||
| + | | ||
| + | |||
| + | Select resource to be deleted. This will remove dependents as well. | ||
| + | |||
| + | ## Notes | ||
| + | * Pulumi works like ansible: update code, rerun to fix where it stucks. | ||
| + | * Resume from task like ansible is nice. | ||
| + | * Should be a way to write config file (haproxy, nginx) other than bash and tee. | ||
| + | * Pulumi must run on Bastion host having access to the resources. Use platform API as much as possible. Vscode remote workspace helps. | ||
| + | * | ||
| + | |||
| + | ## Troubleshooting | ||
| + | |||
| + | ### Authentication error | ||
| + | |||
| + | Secret config must be added with: | ||
| + | |||
| + | | ||
| + | |||
| + | The secret must be encryted and stored in config file. Otherwise the error. | ||
| + | |||