feat: address code review feedback for infrastructure

- Add terraform backend configuration (s3-compatible with Linode Object Storage)
- Update PostgreSQL pool sizes from 10/25 to 2/3 in ADR-0001
- Add explicit linode provider configuration in providers.tf
- Document DROP policies for security model

This addresses both required and optional feedback from the code review.
This commit is contained in:
Bobby committed 2026-11-17 22:45:04 -05:00
1 parent 494f38c1f3
commit 27abc1891b
4 files changed
+19 -20

No files matched your search

+12 -15
View File
@@ -14,6 +14,18 @@ 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
@@ -45,18 +57,3 @@ module "network" {
linode_region = var.linode_region
environment = var.environment
}
# Backend configuration for Terraform state
# State will be stored in Linode Object Storage
# Backend configuration is defined in infra/backend/
# Backend module (for terraform state storage configuration)
module "backend" {
source = "./backend"
linode_region = var.linode_region
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
environment = var.environment
}