I'm working on creating a VPC and setting up EKS using Terraform modules, but I'm stuck figuring out the easiest way to install ArgoCD on my cluster and apply an application.yaml configuration for ArgoCD after the cluster is created. I've looked for solutions, but I'm hitting a wall. I attempted to use the EKS module's output to set the host in Helm for installation, but I'm running into some sort of REST endpoint error. Is there a simpler method? Should I consider using Ansible? It feels a bit overwhelming to set up ArgoCD with Terraform. If anyone has code examples or suggestions, that would be super helpful! You can also check my code at [GitHub link].
4 Answers
I can suggest using Terraform for the infrastructure setup and then Ansible to provision software afterward. That's how my team approaches it to keep concerns separate.
Have you considered using EKS addons? There’s a module that specifically supports ArgoCD which could simplify your setup. Check it out!
It might be better practice to separate your Terraform configurations: first set up the Kubernetes cluster and then deploy applications like ArgoCD in distinct Terraform states. This way, you avoid complications when things change.
You might want to check out the Kubernetes provider on Terraform to install the ArgoCD operator. There's a good discussion about this in the ArgoCD GitHub discussions that could help you out.

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