Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add postgres config #7

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Add postgres config #7

merged 1 commit into from
Dec 3, 2024

Conversation

neekolas
Copy link
Contributor

@neekolas neekolas commented Nov 27, 2024

TL;DR

Adds RDS Aurora PostgreSQL database configuration and connects it to xmtpd services.

What changed?

  • Added RDS Aurora PostgreSQL 16 cluster configuration with 2 instances
  • Updated module sources to reference GitHub repository paths
  • Connected database URL to xmtpd-api and xmtpd-worker services
  • Configured security groups for database access within VPC
  • Set up database parameter groups and subnet groups
  • Implemented password generation for database access

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@@ -0,0 +1,88 @@
locals {
db_engine_version = "16"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than make all these configurable as variables, I think hardcoded locals make the most sense. This is meant to be an example and custom DB config is out of scope.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on a side note. Is there any minimal version of PG we require? I don't think that we use any special PG syntax.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested with very old versions, but I would expect everything to work.

Maybe we just say 13 is minimum, which is the lowest we've tested on

@neekolas neekolas force-pushed the 11-26-add_postgres_config branch 2 times, most recently from 0a160cb to 85071f0 Compare November 27, 2024 00:53
@neekolas neekolas marked this pull request as ready for review November 27, 2024 00:54
@neekolas neekolas merged commit 6f38e8b into main Dec 3, 2024
3 checks passed
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.

3 participants