# How I Am Setting Up VMs On Hetzner Cloud

DevFeed: [How I Am Setting Up VMs On Hetzner Cloud](<https://devfeed.tech/articles/how-i-am-setting-up-vms-on-hetzner-cloud-18829.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/how-i-am-setting-up-vms-on-hetzner-cloud/>)

Published: 2024-10-06T18:25:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [Cloud](<https://devfeed.tech/topics/cloud.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Firewall](<https://devfeed.tech/topics/firewall.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [cloud](<https://devfeed.tech/tags/cloud.md>), [compute](<https://devfeed.tech/tags/compute.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [github](<https://devfeed.tech/tags/github.md>), [linux](<https://devfeed.tech/tags/linux.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

A practical guide to setting up Linux virtual machines on Hetzner Cloud using Terraform. It covers creating a VM, configuring SSH and a firewall restricted to a public IP, provisioning software, and rescaling the instance.

## Source excerpt

Table of Contents Creating Instances Configuring SSH Provisioning Software Try It Out Yourself Whenever I've need a Linux box for some testing or experimentation, or projects like the One Billion Row Challenge a few months back, my go-to solution is Hetzner Online, a data center operator here in Europe. Their prices for VMs are unbeatable, starting with 3,92 EUR /month for two shared vCPUs (either x64 or AArch64), four GB of RAM, and 20 TB of network traffic (these are prices for their German data centers, they vary between regions). four dedicated cores with 16 GB, e.g. for running a small web server, will cost you 28.55 EUR /month. Getting a box with similar specs on AWS would set you back a multiple of that, with the (outbound) network cost being the largest chunk. So it's not a big surprise that more and more people realize the advantages of this offering, most notably Ruby on Rails creator David Heinemeier Hansson, who has been singing the praise for Hetzner's dedicated servers, but also their VM instances, quite a bit on Twitter lately.