♻️: store metadata to S3
All checks were successful
terraform-lint / terraform-lint (push) Successful in 4s

This commit is contained in:
Clément VÉRET
2025-09-04 09:57:02 +02:00
parent 39ea2bac5d
commit 12e80f6a48
3 changed files with 14 additions and 10 deletions

View File

@@ -1,9 +1,3 @@
terraform {
backend "local" {
path = "${var.HOME}/Nextcloud/tofu/terraform.tfstate"
}
}
module "lxc" {
source = "./proxmox_lxc_container"

View File

@@ -5,6 +5,20 @@ terraform {
version = "0.76.0"
}
}
backend "s3" {
bucket = "opentofu"
region = "garage"
key = "homelab/terraform.tfstate"
endpoints = {
s3 = "https://garage.mateu.be"
}
use_path_style = true
skip_credentials_validation = true
skip_region_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
}
}
provider "proxmox" {

View File

@@ -1,7 +1,3 @@
variable "HOME" {
type = string
}
variable "lxc_containers" {
description = "Complete declarative description of a machine"
type = map(object({