This repository contains Terraform configurations to deploy an Amazon EKS cluster with Rancher installed, along with GitHub Actions for automated deployment to different environments.
- AWS account
- Codespaces or devcontainer to run in
terraform/
: Contains Terraform configurationsenvironments/
: Contains environment-specific variables- TODO:
.github/workflows/
: Contains GitHub Actions workflow
- Fork this repository
- Set up AWS credentials (
aws configure sso
) for use in codespace - Customize the variables in
environments/*.tfvars
files
cd terraform
terraform init
terraform plan --var-file=../environments/dev.tfvars
terraform apply
Resources can be cleaned up with terraform destroy
.
- Modify
terraform/main.tf
to change the infrastructure setup - Adjust
terraform/variables.tf
for different input variables - Update environment-specific
.tfvars
files in theenvironments/
directory