- environments/production/main.tf: S3 backend (MinIO), Proxmox provider (commented, ready for bare-metal) - environments/production/variables.tf: Variable stubs for Proxmox - atlantis.yaml: Repo-level config (autoplan on .tf changes, require approval) - .gitignore: Terraform/OpenTofu patterns - modules/: Empty, ready for reusable modules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
870 B
HCL
34 lines
870 B
HCL
# Production environment — managed by Claude AI via Atlantis
|
|
# Changes to this file go through PR → plan → approve → apply
|
|
|
|
terraform {
|
|
required_version = ">= 1.6.0"
|
|
|
|
backend "s3" {
|
|
bucket = "tofu-state"
|
|
key = "production/terraform.tfstate"
|
|
endpoints = { s3 = "http://minio:9000" }
|
|
region = "us-east-1"
|
|
|
|
skip_credentials_validation = true
|
|
skip_metadata_api_check = true
|
|
skip_requesting_account_id = true
|
|
use_path_style = true
|
|
}
|
|
|
|
# Proxmox provider will be added when bare-metal is connected
|
|
# required_providers {
|
|
# proxmox = {
|
|
# source = "bpg/proxmox"
|
|
# version = "~> 0.66"
|
|
# }
|
|
# }
|
|
}
|
|
|
|
# Proxmox provider configuration (uncomment when ready)
|
|
# provider "proxmox" {
|
|
# endpoint = var.proxmox_endpoint
|
|
# api_token = var.proxmox_api_token
|
|
# insecure = true
|
|
# }
|