mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Provision loadbalancer with terraform and custom scripts
This commit is contained in:
parent
01b7e79e55
commit
77a6ef36f3
8 changed files with 136 additions and 29 deletions
19
terraform/config.tf
Normal file
19
terraform/config.tf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
|
||||
provider "scaleway" {
|
||||
region = var.region
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue