feat: python gitignore
This commit is contained in:
15
terraform/main.tf
Normal file
15
terraform/main.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
resource "hcloud_ssh_key" "main" {
|
||||
name = "my-ssh-key"
|
||||
public_key = file("~/.ssh/id_ed25519.pub")
|
||||
}
|
||||
|
||||
resource "hcloud_server" "jumphost" {
|
||||
for_each = local.boxes
|
||||
name = each.key.name
|
||||
image = "debian-12"
|
||||
server_type = "cx23"
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
}
|
||||
18
terraform/providers.tf
Normal file
18
terraform/providers.tf
Normal file
@@ -0,0 +1,18 @@
|
||||
terraform {
|
||||
backend "s3" {
|
||||
skip_credentials_validation = true
|
||||
skip_region_validation = true
|
||||
skip_requesting_account_id = true
|
||||
}
|
||||
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.45"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "hcloud" {
|
||||
token = var.hcloud_token
|
||||
}
|
||||
12
terraform/variables.tf
Normal file
12
terraform/variables.tf
Normal file
@@ -0,0 +1,12 @@
|
||||
variable "hcloud_token" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
locals {
|
||||
boxes = [
|
||||
{
|
||||
name = "jumpbox"
|
||||
type = "cx23"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user