{"id":20659475,"url":"https://github.com/ialejandro/terraform-eks","last_synced_at":"2025-05-10T12:32:05.439Z","repository":{"id":122816746,"uuid":"379384579","full_name":"ialejandro/terraform-eks","owner":"ialejandro","description":"Deploy EKS with Terraform","archived":true,"fork":false,"pushed_at":"2024-02-07T08:37:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T01:27:00.594Z","etag":null,"topics":["aws","eks","kubernetes","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ialejandro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-22T19:51:18.000Z","updated_at":"2024-07-03T21:51:24.000Z","dependencies_parsed_at":"2024-02-07T09:40:31.282Z","dependency_job_id":"71196aaf-0315-43f9-87b1-6f2f0c41de6b","html_url":"https://github.com/ialejandro/terraform-eks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialejandro%2Fterraform-eks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialejandro%2Fterraform-eks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialejandro%2Fterraform-eks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialejandro%2Fterraform-eks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ialejandro","download_url":"https://codeload.github.com/ialejandro/terraform-eks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253415670,"owners_count":21904899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","eks","kubernetes","terraform"],"created_at":"2024-11-16T18:34:28.190Z","updated_at":"2025-05-10T12:32:05.426Z","avatar_url":"https://github.com/ialejandro.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform EKS deploy\n\n## Documentation\n\n* [Kubernetes provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs)\n* [AWS provider](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)\n* [EKS module](https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest)\n* [EKS Release version](https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html)\n\n## Requirements\n\n* Terraform: `\u003e= v0.15.0`\n* Configure AWS account: `aws_access_key_id` and `aws_secret_access_key`\n* The VPC must be exists\n* The subnets must be exists\n* Require `aws-iam-authenticator` ([how-to-install](https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html))\n\n## First steps!\n\n1. Create bucket S3 to save `.tfstate`\n2. Modify `config.tf` with properly `bucket` and `region`\n3. Modify `eks.auto.tfvars` with your values\n4. Install all dependencies and providers: `terraform init`\n5. Deploy: `terraform apply`\n\n## Files\n\n* `config.tf`: providers, requirements and backend for Terraform\n* `eks.auto.tfvars`: values for deployment\n* `main.tf`: main file with EKS resource\n* `outputs.tf`: output resources\n* `variables.tf`: declare all variables with default values\n\n## Default values\n\n```bash\n# EKS\n## GENERAL\neks_cluster_name = \"cluster-eks\"\neks_version      = \"1.19\"\neks_type_workers = \"t3a.micro\"\neks_nr_workers   = 3\n\n## WORKERS\neks_worker_volume_size = 100\n\n# NETWORK\nvpc_id = \"vpc-74865e0d\"\nsubnets_id = [\n  \"subnet-fcf9f39a\",\n  \"subnet-27da3f6c\",\n  \"subnet-6099ce3a\"\n]\n```\n\n## Tests\n\n* (Average) Complete deployment: ~20 minutes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fialejandro%2Fterraform-eks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fialejandro%2Fterraform-eks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fialejandro%2Fterraform-eks/lists"}