{"id":22989225,"url":"https://github.com/cookpad/terraform-aws-eks","last_synced_at":"2026-03-06T11:14:30.719Z","repository":{"id":37702325,"uuid":"221900649","full_name":"cookpad/terraform-aws-eks","owner":"cookpad","description":"A Terraform module to Provision AWS Elastic Kubernetes (EKS) clusters.","archived":false,"fork":false,"pushed_at":"2026-03-04T17:18:15.000Z","size":1232,"stargazers_count":70,"open_issues_count":2,"forks_count":42,"subscribers_count":14,"default_branch":"main","last_synced_at":"2026-03-04T22:38:09.634Z","etag":null,"topics":["aws","aws-eks","aws-eks-cluster","hacktoberfest","kubernetes","kubernetes-deployment","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cookpad.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":"CODEOWNERS","security":"security_groups.tf","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-15T10:27:54.000Z","updated_at":"2025-12-16T03:17:25.000Z","dependencies_parsed_at":"2023-01-24T17:15:23.796Z","dependency_job_id":"b1959239-9cd5-49a2-ad6d-5f5f46efacc2","html_url":"https://github.com/cookpad/terraform-aws-eks","commit_stats":null,"previous_names":[],"tags_count":106,"template":false,"template_full_name":null,"purl":"pkg:github/cookpad/terraform-aws-eks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fterraform-aws-eks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fterraform-aws-eks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fterraform-aws-eks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fterraform-aws-eks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookpad","download_url":"https://codeload.github.com/cookpad/terraform-aws-eks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fterraform-aws-eks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","aws-eks","aws-eks-cluster","hacktoberfest","kubernetes","kubernetes-deployment","terraform"],"created_at":"2024-12-15T04:16:51.867Z","updated_at":"2026-03-06T11:14:30.699Z","avatar_url":"https://github.com/cookpad.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform EKS Module\n\n![.github/workflows/ci.yml](https://github.com/cookpad/terraform-aws-eks/workflows/.github/workflows/ci.yml/badge.svg)\n\nThis repo contains a set of Terraform modules that can be used to provision\nan Elastic Kubernetes (EKS) cluster on AWS.\n\nThis module provides a way to provision an EKS cluster based on the current\nbest practices employed at Cookpad.\n\n## Using this module\n\nTo provision an EKS cluster you need (as a minimum) to specify\na name, and the details of the VPC network you will create it in.\n\n```hcl\nmodule \"cluster\" {\n  source  = \"cookpad/eks/aws\"\n  version = \"~\u003e 1.25\"\n\n  name       = \"hal-9000\"\n\n  vpc_config = {\n    vpc_id = \"vpc-345abc\"\n\n    public_subnet_ids = {\n      use-east-1a = subnet-000af1234\n      use-east-1b = subnet-123ae3456\n      use-east-1c = subnet-456ab6789\n    }\n\n    private_subnet_ids = {\n      use-east-1a = subnet-123af1234\n      use-east-1b = subnet-456bc3456\n      use-east-1c = subnet-789fe6789\n    }\n  }\n}\n\nprovider \"kubernetes\" {\n  host                   = module.cluster.config.endpoint\n  cluster_ca_certificate = base64decode(module.cluster.config.ca_data)\n\n  exec {\n    api_version = \"client.authentication.k8s.io/v1beta1\"\n    command     = \"aws\"\n    args        = [\"eks\", \"get-token\", \"--cluster-name\", module.cluster.config.name]\n  }\n}\n```\n\nThere are many options that can be set to configure your cluster.\nCheck the [input documentation](https://registry.terraform.io/modules/cookpad/eks/aws/latest?tab=inputs) for more information.\n\n\n## Networking\n\nIf you only have simple networking requirements you can use the\nsubmodule `cookpad/eks/aws/modules/vpc` to create a VPC, it's output\nvariable `config` can be used to configure the `vpc_config` variable.\n\nCheck the [VPC module documentation](https://registry.terraform.io/modules/cookpad/eks/aws/latest/submodules/vpc) for more extensive information.\n\n## Karpenter\n\nWe use karpenter to provision the nodes that run the workloads in\nour clusters. You can use the submodule `cookpad/eks/aws/modules/vpc`\nto provision the resources required to use karpenter, and a fargate\nprofile to run the karpenter pods.\n\nCheck the [Karpenter module documentation](https://registry.terraform.io/modules/cookpad/eks/aws/latest/submodules/karpenter) for more information.\n\n## Requirements\n\nIn order for this module to communicate with kubernetes correctly this module\nrequires the `aws` cli to be installed and on your path.\n\nYou will need to initialise the kuberntes provider as shown in the\nexample.\n\n## Multi User Environments\n\nIn an environment where multiple IAM users are used to running `terraform run`\nand `terraform apply` it is recommended to use the assume role functionality\nto assume a common IAM role in the aws provider definition.\n\n```hcl\nprovider \"aws\" {\n  region              = \"us-east-1\"\n  version             = \"3.53.0\"\n  assume_role {\n    role_arn = \"arn:aws:iam::\u003cyour account id\u003e:role/Terraform\"\n  }\n}\n```\n\n[see an example role here](https://github.com/cookpad/terraform-aws-eks/blob/main/examples/iam_permissions/main.tf)\n\n\nAlternatively you should ensure that all users who need to run terraform\nare listed in the `aws_auth_user_map` variable of the cluster module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fterraform-aws-eks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookpad%2Fterraform-aws-eks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fterraform-aws-eks/lists"}