-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.tf
More file actions
51 lines (42 loc) · 772 Bytes
/
utils.tf
File metadata and controls
51 lines (42 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Variables
#
variable "hcloud_token" {
description = "Hetzner Cloud token"
type = string
sensitive = true
}
variable "ssh_fingerprint" {
description = "SSH key fingerprint"
type = string
sensitive = true
}
variable "ssh_pub_key" {
description = "SSH public key"
type = string
sensitive = true
}
variable "passwd" {
description = "Password for the user"
type = string
sensitive = true
}
#
# Provider
#
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = "1.60.1"
}
}
}
# Define Hetzner provider token
provider "hcloud" {
token = var.hcloud_token
}
# Obtain ssh key data
data "hcloud_ssh_key" "ssh_key" {
fingerprint = var.ssh_fingerprint
}