Skip to content

Add Terraform for PostgreSQL database provisioning#47

Merged
Brad-Edwards merged 5 commits intodevfrom
feat/issue-15-terraform
Mar 7, 2026
Merged

Add Terraform for PostgreSQL database provisioning#47
Brad-Edwards merged 5 commits intodevfrom
feat/issue-15-terraform

Conversation

@Brad-Edwards
Copy link
Copy Markdown
Collaborator

@Brad-Edwards Brad-Edwards commented Mar 7, 2026

Summary

  • Adds terraform/ directory with RDS PostgreSQL 16 configuration
  • Uses db.t4g.micro on default VPC for minimal cost
  • S3 backend with partial config (backend-dev.hcl, backend-prod.hcl)
  • Outputs database_url matching the app's expected format
  • pgvector requires CREATE EXTENSION vector post-deploy

Closes #15

Test plan

  • Review Terraform configuration for correctness
  • terraform init -backend-config=backend-dev.hcl in catalyst-dev account
  • terraform plan in catalyst-dev account — 4 resources to add, us-east-2
  • terraform init -backend-config=backend-prod.hcl in catalyst-prod account
  • terraform plan in catalyst-prod account — 4 resources to add, us-east-2

Provisions a db.t4g.micro PostgreSQL 16 instance on AWS RDS with
pgvector support, using the default VPC for simplicity. Includes
S3 backend for state, security group for port 5432 access, and
outputs the DATABASE_URL connection string.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Brad-Edwards Brad-Edwards changed the base branch from main to dev March 7, 2026 16:55
Brad-Edwards and others added 4 commits March 7, 2026 17:45
The S3 state buckets are org-wide shared buckets (keplerops-tfstate-<account-id>).
Initialize with: terraform init -backend-config=backend-dev.hcl

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Brad-Edwards Brad-Edwards merged commit 7772ef9 into dev Mar 7, 2026
@Brad-Edwards Brad-Edwards deleted the feat/issue-15-terraform branch March 7, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Terraform for PostgreSQL database provisioning

1 participant