serverctl/infrastructure/create-resources/provider.tf

36 lines
631 B
Terraform
Raw Normal View History

2022-02-17 21:39:56 +01:00
terraform {
required_providers {
hcloud = {
2022-02-19 18:18:19 +01:00
source = "hetznercloud/hcloud"
2022-02-17 21:39:56 +01:00
version = "1.32.2"
}
}
backend "s3" {
bucket = "serverctl-terraform"
2022-02-19 18:18:19 +01:00
key = "terraform.tfstate"
2022-02-17 21:39:56 +01:00
endpoint = "https://api.minio.front.kjuulh.io"
region = "main"
skip_credentials_validation = true
2022-02-19 18:18:19 +01:00
skip_metadata_api_check = true
skip_region_validation = true
force_path_style = true
2022-02-17 21:39:56 +01:00
}
}
variable "hcloud_token" {
sensitive = true
}
provider "hcloud" {
token = var.hcloud_token
}
2022-02-18 15:50:37 +01:00
variable "hcloud_serverctl_ssh_key_id" {}
variable "pvt_key" {}
variable "pub_key" {}