{"id":21655801,"url":"https://github.com/hollowman6/terraform","last_synced_at":"2026-05-03T23:35:40.514Z","repository":{"id":188544908,"uuid":"678949701","full_name":"HollowMan6/terraform","owner":"HollowMan6","description":"Terraform code to spin a AMD SEV-SNP Confidential Kubernetes cluster using AWS EC2 instances","archived":false,"fork":false,"pushed_at":"2023-08-18T21:29:50.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T06:21:30.050Z","etag":null,"topics":["confidential-computing","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/HollowMan6.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":"2023-08-15T19:02:11.000Z","updated_at":"2023-08-18T21:12:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7097718-11ba-4e85-9162-0d60b6b9a29d","html_url":"https://github.com/HollowMan6/terraform","commit_stats":null,"previous_names":["hollowman6/terraform"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HollowMan6/terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2Fterraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2Fterraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2Fterraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2Fterraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HollowMan6","download_url":"https://codeload.github.com/HollowMan6/terraform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HollowMan6%2Fterraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["confidential-computing","kubernetes","terraform"],"created_at":"2024-11-25T08:36:05.321Z","updated_at":"2026-05-03T23:35:40.497Z","avatar_url":"https://github.com/HollowMan6.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform code to spin a AMD SEV-SNP Confidential Kubernetes cluster using AWS EC2 instances\n\nRefered to https://github.com/regisftm/aws-ec2-k8s-tf\n\nThe Terraform code here will build a Kubernetes cluster using AWS EC2 instances and kubeadm with AMD SEV-SNP technology.\n\nYou will need an AWS account and Terraform installed on your computer. Set up the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` in advance by refering to the docs [here](https://docs.aws.amazon.com/keyspaces/latest/devguide/access.credentials.html).\n\n1. Start by cloning this repository:\n\n```bash\ngit clone https://github.com/HollowMan6/terraform\n```\n\n2. Change the directory to Terraform, and run the Terraform initialization:\n\n```bash\ncd terraform\nterraform init\n```\n\n3. Edit the `variables.tf` file and change accordingly. The default value will generate 1 EC2 instance type c6a.large for the control-plane and 1 EC2 instance type c6a.large for the worker node. The AWS region selected is `eu-west-1`.\n\n```bash\nvi variables.tf\n```\n\n4. Apply the Terraform code. This code will build the EC2 instances and install Kubernetes and other software used in this demonstration.\n\n```bash\nterraform apply --auto-approve\n```\n5. After a few minutes, you will see the output containing the created public IPs for the EC2 instances. \n\n\u003cpre\u003e\nApply complete! Resources: 12 added, 0 changed, 0 destroyed.\n\nOutputs:\n\ncontrol_plane_public_ip = \"3.96.49.113\"\nworkers_public_ips = {\n  \"worker-01\" = \"3.99.20.164\"\n}\n\u003c/pre\u003e\n\n6. Join the worker node(s) to the cluster automatically by running the [`post-creation.sh`](post-creation.sh).\n\n7. From the terminal connected to the control-plane, verify if the node successfully joined the cluster by running the following command as `root` (use `sudo su - root`):\n\n   ```bash\n   $ ssh -i ec2-login-key ubuntu@$(terraform output control_plane_public_ip | tr -d '\"')\n   $ sudo su - root\n   $ kubectl get nodes\n   ```\n\n   The output should be:\n\n   \u003cpre\u003e\n   NAME            STATUS     ROLES           AGE     VERSION\n   control-plane   Ready      control-plane   14m     v1.28.0\n   worker-01       Ready      \u0026lt;none\u0026gt;          2m36s   v1.28.0\n   \u003c/pre\u003e\n\n### Congratulation, you did it! Now go enjoy your confidential Kubernetes cluster!\n\n---\n\n## Clean up\n\nUse the command below.\n\n```bash\nterraform destroy --auto-approve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhollowman6%2Fterraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhollowman6%2Fterraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhollowman6%2Fterraform/lists"}