Terraform error provisioning new VMs on Hetzner: error during placement (resource_unavailable)

I’ve been moving to use Terraform to provision VMs on Hetzner, and recently while adding a minor change and doing a ‘terraform apply’ I got this error:

Error: error during placement (resource_unavailable, ...

I hadn’t seen this before, but according to this post, ‘resource_unavailable’ means that Hetzner are unable to provision a new VM of the selected type (I’m using cx22), and may be a temporary issue, or maybe changing the location to one of their other locations may work.

Re-running a few minutes later and the provisioning was successful.

MacOS zsh terminal themes and prompt customisation

A while back I stumbled across basic zsh prompt customisation to show the current git branch I’m working on. Some point later I also added oh-my-zsh but kept the default theme as it worked fine for my needs and was unobtrusive.

At some point recently I had a couple of terminal customisation videos come up in my recommended feed, and watching one out of curiousity I was amazed at just how far you can go, especially with displaying all sorts of info as badges in your prompt.

Just so I don’t forget how I got here, I installed powerlevel10k using brew:

brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc

and then used the interactive customisation menus which run if you restart zsh with:

exec zsh