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

+19 -4
View File
@@ -1,7 +1,7 @@
# Outputs for HAPI Terraform infrastructure
output "postgres_endpoint" {
description = "PostgreSQL endpoint for the environment"
description = "PostgreSQL endpoint for the environment (Kubernetes API endpoint)"
value = module.postgres.endpoint
}
@@ -47,11 +47,26 @@ output "firewall_rules" {
value = module.network.firewall_rules
}
output "firewall_id" {
description = "Linode firewall ID"
value = module.network.firewall_id
}
output "firewall_label" {
description = "Linode firewall label"
value = module.network.firewall_label
}
output "terraform_backend_config" {
description = "Configuration for Terraform backend in Object Storage"
value = {
bucket = module.storage.state_bucket_name
key = "terraform/${var.environment}/terraform.tfstate"
region = var.linode_region
bucket = module.backend.backend_bucket
key = module.backend.backend_key
region = module.backend.backend_region
}
}
output "backend_endpoint" {
description = "Object Storage endpoint for backend state"
value = module.backend.backend_endpoint
}