Provision loadbalancer with terraform and custom scripts

This commit is contained in:
Paul-Henri Froidmont 2019-08-17 23:58:36 +02:00
parent 01b7e79e55
commit 77a6ef36f3
8 changed files with 136 additions and 29 deletions

19
terraform/config.tf Normal file
View 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
}