terraform_eks_flux_sync_with_helm
Install terraform on Amazon linux
sudo yum install -y yum-utils shadow-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
sudo yum -y install terraform
curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.22.6/2022-03-09/bin/linux/amd64/kubectl
chmod +x ./kubectl
cp kubectl /usr/bin
kubectl version --short --client
wget https://github.com/fluxcd/flux2/releases/download/v0.27.4/flux_0.27.4_linux_amd64.tar.gz
tar xvf flux_0.27.4_linux_amd64.tar.gz
mv flux /usr/bin
Clone Repo to run below commands
git clone https://github.com/cloudtechmasters/terraform_eks_flux_sync_with_helm.git
cd terraform_eks_flux_sync_with_helm
Create Cluster and Deploy applciations
terraform init
terraform plan
terraform apply -auto-approve
aws eks update-kubeconfig --name demoeks-cluster --region us-east-1
kubectl get kustomization