{"id":22357030,"url":"https://github.com/gordonmurray/terraform_aws_eks","last_synced_at":"2026-04-11T02:03:49.934Z","repository":{"id":43349182,"uuid":"297164092","full_name":"gordonmurray/terraform_aws_eks","owner":"gordonmurray","description":"A Kubernetes cluster created on AWS EKS using Terraform","archived":false,"fork":false,"pushed_at":"2023-08-01T18:44:39.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T21:47:18.193Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gordonmurray.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}},"created_at":"2020-09-20T21:09:32.000Z","updated_at":"2022-12-26T14:50:41.000Z","dependencies_parsed_at":"2022-08-12T10:40:38.099Z","dependency_job_id":null,"html_url":"https://github.com/gordonmurray/terraform_aws_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/gordonmurray%2Fterraform_aws_eks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_eks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_eks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_eks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gordonmurray","download_url":"https://codeload.github.com/gordonmurray/terraform_aws_eks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659024,"owners_count":20651526,"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-12-04T14:12:49.980Z","updated_at":"2026-04-11T02:03:49.897Z","avatar_url":"https://github.com/gordonmurray.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes cluster on AWS EKS using Terraform\n\nBefore you begin, make sure you have the following installed:\n\n* Terraform - version 1.4.2 [link](https://www.terraform.io/downloads.html)\n* AWS CLI [link](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)\n* Kubectl [link](https://kubernetes.io/docs/tasks/tools/)\n* Helm [link](https://helm.sh/docs/intro/install/)\n\nTo create the cluster:\n\n```\nterraform init\nterraform apply\n```\n\nOnce terraform has created the cluster:\n\n```\naws eks update-kubeconfig --name terraform-eks --profile=gordonmurray --region=eu-west-1\n```\n\nYou should see an output similar to :\n\n\u003e Added new context arn:aws:eks:eu-west-1:016230046494:cluster/terraform-eks to /home/gordon/.kube/config\n\nTry out some Kubectl commands:\n\n```\nkubectl get nodes\nkubectl get pods --all-namespaces\n```\n\nList current cluster contexts\n\n```\nkubectl config get-contexts -o name\n```\n\n## Estimated cost, using [Infracost](https://github.com/infracost/infracost)\n\n```\nProject: gordonmurray/terraform_aws_eks\n\n Name                                                                                           Monthly Qty  Unit                    Monthly Cost\n\n module.my-cluster.aws_cloudwatch_log_group.this[0]\n ├─ Data ingested                                                                         Monthly cost depends on usage: $0.57 per GB\n ├─ Archival Storage                                                                      Monthly cost depends on usage: $0.03 per GB\n └─ Insights queries data scanned                                                         Monthly cost depends on usage: $0.0057 per GB\n\n module.my-cluster.aws_eks_cluster.this[0]\n └─ EKS cluster                                                                                         730  hours                         $73.00\n\n module.my-cluster.module.eks_managed_node_group[\"green\"].aws_eks_node_group.this[0]\n └─ module.my-cluster.module.eks_managed_node_group[\"green\"].aws_launch_template.this[0]\n    ├─ Instance usage (Linux/UNIX, on-demand, t3.large)                                                 730  hours                         $66.58\n    └─ EC2 detailed monitoring                                                                            7  metrics                        $2.10\n\n module.my-cluster.module.kms.aws_kms_key.this[0]\n ├─ Customer master key                                                                                   1  months                         $1.00\n ├─ Requests                                                                              Monthly cost depends on usage: $0.03 per 10k requests\n ├─ ECC GenerateDataKeyPair requests                                                      Monthly cost depends on usage: $0.10 per 10k requests\n └─ RSA GenerateDataKeyPair requests                                                      Monthly cost depends on usage: $0.10 per 10k requests\n\n OVERALL TOTAL                                                                                                                            $142.68\n──────────────────────────────────\n39 cloud resources were detected:\n∙ 4 were estimated, 2 of which include usage-based costs, see https://infracost.io/usage-file\n∙ 35 were free:\n  ∙ 11 x aws_security_group_rule\n  ∙ 6 x aws_iam_role_policy_attachment\n  ∙ 3 x aws_subnet\n  ∙ 2 x aws_iam_role\n  ∙ 2 x aws_route_table_association\n  ∙ 2 x aws_security_group\n  ∙ 1 x aws_ec2_tag\n  ∙ 1 x aws_iam_openid_connect_provider\n  ∙ 1 x aws_iam_policy\n  ∙ 1 x aws_internet_gateway\n  ∙ 1 x aws_kms_alias\n  ∙ 1 x aws_launch_template\n  ∙ 1 x aws_route\n  ∙ 1 x aws_route_table\n  ∙ 1 x aws_vpc\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonmurray%2Fterraform_aws_eks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgordonmurray%2Fterraform_aws_eks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonmurray%2Fterraform_aws_eks/lists"}