- Install dependencies with Mise
mise install-
Adjust backend and vars file in
config/dev/us-east-1.tfvarsfolder -
Export AWS credentials related to the account you would like to deploy
-
Initialize Terraform
cd src/
mise run init-dev- Deploy initial infrastructure
mise run apply-dev-bootstrapThe infrastructure needs to be deployed in a two-phase process when using Terraform. This is a limitation of the Kubernetes provider for Terraform, since it's required to have an EKS cluster provisioned before using the provider.
- Deploy the rest of the infrastructure
mise run apply-devFrom now on, no need to run bootstrap anymore! Every future deployment can run directly mise run apply-dev.
- Add Deploy key to GitHub Repository
The Terraform created the SSH key to be used by ArgoCD in order to pull the repository (if it's private). Basically you should copy the output of argocd_deploy_public_key and add it as a Deploy Key in your repository.