Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.50"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
provider "hcloud" {
|
||||
token = var.hcloud_token
|
||||
}
|
||||
|
||||
|
||||
|
||||
resource "hcloud_server" "main" {
|
||||
name = "learningunix"
|
||||
server_type = "cx23"
|
||||
image = "debian-13"
|
||||
location = var.location
|
||||
ssh_keys = [var.ssh_key_name]
|
||||
}
|
||||
Reference in New Issue
Block a user