feat: Linode Provider v2 migration and backend module

- Documented Linode Terraform Provider v2 migration in ADR-0002
- Created dedicated backend module for state storage
- Updated all modules for v2 patterns (cluster→region, pools→pool, tags)
- Added firewall outputs and backend outputs
- Updated example tfvars files with v2 configurations
- Updated AGENTS.md, README.md, and documentation
This commit is contained in:
Bobby committed 2026-11-17 23:29:19 -05:00
1 parent 27abc1891b
commit a5047cb72e
17 files changed
+581 -121

No files matched your search

+9 -12
View File
@@ -14,23 +14,20 @@ terraform {
version = "~> 3.0"
}
}
# Backend configuration for Terraform state using S3-compatible Linode Object Storage
backend "s3" {
bucket = "hapi-terraform-state-${var.environment}"
key = "terraform/${var.environment}/terraform.tfstate"
region = var.linode_region
endpoint = "https://${var.linode_region}.linodeobjects.com"
encrypt = true
access_key = var.object_storage_access_key
secret_key = var.object_storage_secret_key
skip_region_validation = true
}
}
# Provider configurations are in providers.tf
# Modules
module "backend" {
source = "./backend"
environment = var.environment
linode_object_storage_cluster = var.linode_object_storage_cluster
object_storage_access_key = var.object_storage_access_key
object_storage_secret_key = var.object_storage_secret_key
}
module "postgres" {
source = "./postgres"