diff --git a/Makefile b/Makefile index 2c42fcd..3ffff4c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CODE_PATH ?= . HETZNERKEY ?= . init: - @cd $(CODE_PATH) && terraform init -reconfigure -upgrade + @cd $(CODE_PATH) && terraform init -reconfigure -upgrade -backend-config="access_key=$(B2ACCESS)" -backend-config="secret_key=$(B2SECRET)" plan: init validate @cd $(CODE_PATH) && terraform plan -var="hcloud_token=$(HETZNERKEY)" diff --git a/hetzner/Projects/Development/landing-zone/backend.tf b/hetzner/Projects/Development/landing-zone/backend.tf new file mode 100644 index 0000000..14e8192 --- /dev/null +++ b/hetzner/Projects/Development/landing-zone/backend.tf @@ -0,0 +1,17 @@ +terraform { + backend "s3" { + bucket = "tf-state-oscar" + key = "terraform.tfstate" + region = "us-east-1" + endpoint = "s3.eu-central-003.backblazeb2.com" + access_key = "xxxx" + secret_key = "xxxx" + + skip_requesting_account_id = true + skip_credentials_validation = true + skip_get_ec2_platforms = true + skip_metadata_api_check = true + skip_region_validation = true + + } +} \ No newline at end of file