Git
Progress checklist
Git is used throughout this walkthrough to clone the Terraform infrastructure repo and, in the Platform batch, to work with GitOps manifests that ArgoCD syncs to the cluster. Install it, set your identity, and clone the infra repo before moving to the Networking batch.
-
Install Git. Required
macOS ships with a system Git, but Homebrew’s version is kept up to date:
Terminal window brew install gitTerminal window sudo apt-get update && sudo apt-get install -y gitVerify:
Terminal window git --version -
Configure your identity.
Git requires a name and email for commits. This matters if you push any changes later (e.g. to your own fork of the Terraform repo or a GitOps repo).
Terminal window git config --global user.name "Your Name"git config --global user.email "you@example.com"Confirm the settings:
Terminal window git config --global --list -
Clone the Terraform infrastructure repo. Required
The Terraform code for this walkthrough lives in a separate repository. Clone it into your workspace directory.
Terminal window cd ~/workspacegit clone https://github.com/jajera/aws-eks-terraform.gitcd aws-eks-terraformConfirm the clone worked:
Terminal window lsYou should see directories like
modules/,walkthrough/, and files likeREADME.md. -
Optional: use SSH instead of HTTPS.
If you have an SSH key configured with GitHub, use SSH to avoid entering your credentials on every
git pull:Terminal window git clone git@github.com:jajera/aws-eks-terraform.gitTo set up an SSH key: GitHub docs — generating a new SSH key.
-
Verify the remote.
Terminal window git remote -vExpected output:
origin https://github.com/jajera/aws-eks-terraform.git (fetch)origin https://github.com/jajera/aws-eks-terraform.git (push)
Next step
Section titled “Next step”Continue to What else for region, cost, and Terraform state considerations before starting infrastructure.