1
0
Fork 0

feat: add loadbalancers, cthulhunetes domain, node hostnames, terraform backend, init terraform

This commit is contained in:
Vojtěch Mareš 2023-11-17 15:17:31 +01:00
parent 41a4c2ef5d
commit 5a135cacf3
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
6 changed files with 304 additions and 0 deletions

59
terraform/versions.tf Normal file
View file

@ -0,0 +1,59 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.26.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.19.0"
}
hcloud = {
source = "hetznercloud/hcloud"
version = "1.44.1"
}
}
}
provider "aws" {
region = "eu-west-1"
access_key = var.aws_access_key
secret_key = var.aws_secret_key
}
provider "cloudflare" {
api_key = var.cloudflare_api_key
email = var.cloudflare_email
}
provider "hcloud" {
token = var.hcloud_token
}
variable "aws_access_key" {
type = string
sensitive = true
}
variable "aws_secret_key" {
type = string
sensitive = true
}
variable "cloudflare_api_key" {
type = string
sensitive = true
}
variable "cloudflare_email" {
type = string
}
variable "hcloud_token" {
type = string
sensitive = true
}