12 lines
756 B
HCL
Executable File
12 lines
756 B
HCL
Executable File
variable "hcloud_token" {default = "your bearer token here"}
|
|
variable "hcloud_endpoint" {default = "https://api.hetzner.cloud/v1"}
|
|
# curl -H "Authorization: Bearer <your bearer token here>" -X GET https://api.hetzner.cloud/v1/images
|
|
variable "image" {default = "ubuntu-20.04"}
|
|
# curl -H "Authorization: Bearer <your bearer token here>" https://api.hetzner.cloud/v1/servers
|
|
variable "server_type" {default = "cpx11"}
|
|
# curl -H "Authorization: Bearer <your bearer token here>" -X GET https://api.hetzner.cloud/v1/datacenters
|
|
# variable "datacenter" {default = "hel1-dc2"} # location and datacenter are mutually exclusive
|
|
variable "location" {default = "hel1"}
|
|
variable "volume_size_GB" {default = "50"}
|
|
variable "ssh_pub_key" {default = "~/.ssh/id_rsa.pub"}
|