<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj" -->

---
title: How I Am Setting Up VMs On Hetzner Cloud | daily.dev
description: A walkthrough of an automated workflow for spinning up and configuring Linux VMs on Hetzner Cloud using Terraform and Ansible. Covers VM creation with the...
canonical: https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I Am Setting Up VMs On Hetzner Cloud | daily.dev
og:description: A walkthrough of an automated workflow for spinning up and configuring Linux VMs on Hetzner Cloud using Terraform and Ansible. Covers VM creation with the...
og:url: https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj
og:image: https://api.daily.dev/og/posts/hPoAgRCsj.png
og:image:alt: How I Am Setting Up VMs On Hetzner Cloud
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I Am Setting Up VMs On Hetzner Cloud

**[Gunnar Morling](https://daily.dev/sources/gunnar-morling)** · 6 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of an automated workflow for spinning up and configuring Linux VMs on Hetzner Cloud using Terraform and Ansible. Covers VM creation with the Hetzner Terraform provider, SSH hardening best practices (key-based auth, disabling root login, non-standard port), and software provisioning including Docker and SDKMan. Also highlights Hetzner's cost advantages over AWS and the ability to scale VM types up and down on demand.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.morling.dev/blog/how-i-am-setting-up-vms-on-hetzner-cloud/>

## Similar posts on daily.dev

- [Migrating to Hetzner](https://daily.dev/posts/migrating-to-hetzner-tifscobyw) · Hacker News · 1 upvotes · 0 comments
- [Send this article to your friend who still thinks the cloud is a good idea](https://daily.dev/posts/send-this-article-to-your-friend-who-still-thinks-the-cloud-is-a-good-idea-ig3vnoydp) · Hacker News · 93 upvotes · 18 comments

---

Tags: [#cloud](https://daily.dev/tags/cloud), [#devops](https://daily.dev/tags/devops), [#terraform](https://daily.dev/tags/terraform), [#ansible](https://daily.dev/tags/ansible)

[View this post on daily.dev](https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How I Am Setting Up VMs On Hetzner Cloud","url":"https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj"},"datePublished":"2026-03-16T08:14:36.945Z","dateModified":"2026-03-16T08:29:33.336Z","description":"A walkthrough of an automated workflow for spinning up and configuring Linux VMs on Hetzner Cloud using Terraform and Ansible. Covers VM creation with the...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"Gunnar Morling","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Gunnar Morling","logo":"https://media.daily.dev/image/upload/s--77UJH_xq--/f_auto,q_auto/v1773648773/logos/gunnar-morling?_a=BAMAMiiu0","url":"https://daily.dev/sources/gunnar-morling"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-i-am-setting-up-vms-on-hetzner-cloud-hpoagrcsj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cloud,devops,terraform,ansible","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Gunnar Morling","item":"https://daily.dev/sources/gunnar-morling"},{"@type":"ListItem","position":3,"name":"How I Am Setting Up VMs On Hetzner Cloud"}]}
```

