There is no specific example of running Phoenix with PostgreSQL using Terraform in the provided data sources. However, you can configure Phoenix to use PostgreSQL by setting the PHOENIX_SQL_DATABASE_URL environment variable to your PostgreSQL instance URL, as mentioned in the Persistence documentation. Would you like more details on setting up Phoenix with PostgreSQL, or guidance on how to integrate this with Terraform?Sources:
- Persistence documentation
💡Hint: Mention RunLLM in the thread for followups.
Hi Brad, we run Phoenix in AWS Fargate, with RDS Postgres, deployed with Terraform. I don't have code to share, but I might be able to answer some questions.
FYI, we build our own container top of the upstream container that remaps environment variables to accept the database parameters individually. That way we can feed in the password from Secrets Manager.
Also, we run a bit larger DB than I originally thought we needed (db.t4g.xlarge) because the tracing UI was maxing out the smaller dbs.