Pre-requisites
- create an was iam group with AdministratorAccess permission and update the group name in env.hcl
git clone https://github.com/ThitsaX/eks-iac.git
cd eks-iac
edit Terraform/env.hcl
cd Terraform/backend
terraform init
terraform plan --var-file=../env.hcl
terraform apply --var-file=../env.hcl
cd ../eks-setup
terraform init --backend-config=../backend/backend.hcl
terraform plan --var-file=../env.hcl
terraform apply --var-file=../env.hcl
cd ../addons
terraform init --backend-config=../backend/backend.hcl
terraform plan --var-file=../env.hcl
terraform apply --var-file=../env.hcl
To Run With Gitlab-CI Pipeline
Pre-Request
Please Under values to Gitlab CI's Variables.
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
BUCKET_NAME=