self-hosting/terraform/config.tf

24 lines
595 B
Terraform
Raw Normal View History

locals {
environment = terraform.workspace != "" ? terraform.workspace : "test"
}
terraform {
backend "s3" {
bucket = "banditlair-k8s-tfstate"
key = "banditlair.tfstate"
region = "nl-ams"
endpoint = "https://s3.nl-ams.scw.cloud"
profile = "default"
skip_credentials_validation = true
skip_region_validation = true
}
}
2019-08-22 05:11:27 +02:00
provider "hcloud" {
}
resource "hcloud_ssh_key" "desktop" {
name = "Desktop"
public_key = "${file("ssh_keys/desktop.pub")}"
}