Am using a combination of these tools
- Terraform - To deploy the Application specific AWS resources I need (For instance a secret)
- Skaffold - To help with the inner development loop, surrounding the deployment of K8s resources to local and remote cluster
- Kustomize - To help with templating of different configurations for different environment
My github action steps are as follows
- Terraform to create the AWS resources. At this point it creates a AWS secrets arn.
- Skaffold to deploy the k8s manifests. Skaffold in-turn delegates K8s manifest generation to Kustomize. Within the Kustomize overlay files i need to be able to access the Secrets arn that was created earlier, this arn needs to be injected into the container that is being deployed. How do I achieve this?
Rephrasing the question: How do I pass resources that were created by terraform to be consumed by something like Kustomize (Which is used by skaffold)
(p.s, I really like the choice of my tools thus far as each one excels at one thing. I realize that terraform can possibly do all of it, but that is a choice that I dont want to make unless there are no easier options)