WEBVTT

00:00.000 --> 00:04.320
Welcome to this whirlwind tour or hooking up your hstacks account to your Hetzner Cloud account. So you're going to

00:04.320 --> 00:09.680
head to your Hetzner Cloud dashboard and you're going to click on a project. And in this

00:09.680 --> 00:14.800
project we're going to create an API key. So an API key is tied to a Hetzner Cloud project

00:14.800 --> 00:20.560
and we can use that in hstacks to create resources like Servers, Firewalls and Volumes inside this

00:20.560 --> 00:27.360
Hetzner Cloud project. So once you're in your project go down to security, click on "API Tokens"

00:27.440 --> 00:30.320
and we're just going to generate an API token. So we're going to give it a name, we're going to

00:30.320 --> 00:37.120
call it "hetzner-token", give it a read and write permissions, we're going to generate that and

00:37.120 --> 00:41.040
then we're going to copy that over. Next step is to head over to your hstacks account,

00:41.840 --> 00:49.440
go to keys, create key, fresh key, give it a name, go give it that quickly. We can add that key to our

00:50.000 --> 00:55.040
hstacks account. Now we want to associate that Key to a Token. So when you have a Token it is

00:55.040 --> 01:00.320
associated with a Key that gives the ability for you to tie your hstacks accounts to your

01:00.320 --> 01:05.200
Hetzner Cloud account. So once we're in Tokens we can go to "Create token", we can pick our key,

01:05.200 --> 01:11.920
in this case "fresh-key", we'll give the name "fresh-token", and we can create that token. And that's

01:11.920 --> 01:16.400
it, we now have everything we need to authenticate with our Hetzner Cloud account inside that

01:16.400 --> 01:21.360
project that we created an API key for. Let's give it a quick demo, let's run and create a Stack,

01:21.360 --> 01:27.120
I'm going to fire up a Server, "first-stack", so we'll update our name, we don't need to use

01:27.120 --> 01:34.240
any webbooks right now, we want to create a Server, so "first-server", we can choose what type of

01:34.240 --> 01:39.600
server we want, I'm going to go for the CAX11. We can choose the image that we want, I want to use

01:39.600 --> 01:48.400
Ubuntu 24.04. And let's fire this up in Nuremberg, so we can use that value. We'll start it immediately,

01:48.400 --> 01:54.320
we won't give it an SSH Key, we can give it a start script, so let's have it update + upgrade

01:54.320 --> 02:05.120
Ubuntu to the latest versions, so "sudo-apt update -y", "sudo apt upgrade", and just in case there's

02:05.120 --> 02:12.480
yes, give it a label, "hello world", add that to the template, now we can validate that stack,

02:12.480 --> 02:17.920
we can see it's valid, we can deploy that Stack, we can use our fresh token which has the key,

02:18.000 --> 02:24.640
and then we can go deploy. And that's it! It's going to build that server for me right now,

02:24.640 --> 02:29.040
and it's finished, that's it! if we go back to our Hetzner Cloud account,

02:29.840 --> 02:36.000
we can see in our Servers, there it is right there, just configured, ready to go 🚀

