I'm currently managing my applications with Terraform modules, where I can create resources like MySQL users, S3 buckets, and Kubernetes components all together using Terraform's native providers. However, I'm trying to figure out how to integrate database user creation with Argo CD, especially since it seems to be the current industry standard. I'm a bit confused about provisioning non-Kubernetes resources like this with Argo CD. Anyone have insights on how best to approach this?
2 Answers
One way to seed database users is to utilize a startup entrypoint script for your PostgreSQL container. If you look at how Bitnami's Postgres container does it, there's good reference material available online. That way, you can execute the necessary commands when the container initializes.
If you're using a PostgreSQL cluster defined through CloudNativePG, you can actually define users within the cluster's configuration. You can check out their documentation on declarative role management for detailed guidance.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically