{"id":24799053,"url":"https://github.com/gordonmurray/terraform_aws_deepseek","last_synced_at":"2026-04-17T15:31:55.801Z","repository":{"id":274884236,"uuid":"924328874","full_name":"gordonmurray/terraform_aws_deepseek","owner":"gordonmurray","description":"A terraform project to create an EC2 instance running Deepseek R1","archived":false,"fork":false,"pushed_at":"2025-04-06T21:03:10.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T10:35:12.377Z","etag":null,"topics":["aws","deepseek","deepseek-r1","terraform"],"latest_commit_sha":null,"homepage":"https://gordonmurray.com","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/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":"security_group.tf","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T20:04:54.000Z","updated_at":"2025-04-06T21:03:14.000Z","dependencies_parsed_at":"2025-01-29T23:36:07.925Z","dependency_job_id":null,"html_url":"https://github.com/gordonmurray/terraform_aws_deepseek","commit_stats":null,"previous_names":["gordonmurray/terraform_aws_deepseek"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gordonmurray/terraform_aws_deepseek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_deepseek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_deepseek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_deepseek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_deepseek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gordonmurray","download_url":"https://codeload.github.com/gordonmurray/terraform_aws_deepseek/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gordonmurray%2Fterraform_aws_deepseek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["aws","deepseek","deepseek-r1","terraform"],"created_at":"2025-01-30T02:16:27.219Z","updated_at":"2026-04-17T15:31:55.785Z","avatar_url":"https://github.com/gordonmurray.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deepseek R1 on AWS using Terraform.\n\nA quick terraform project to create an EC2 instance running Deepseek R1\n\nUsing the approach from this guide: https://community.aws/content/2sEuHQlpyIFSwCkzmx585JckSgN/deploying-deepseek-r1-14b-on-amazon-ec2\n\n## Prerequisites\n\nTo use this project, ensure you have the following installed locally:\n\n* Terraform (version 1.0 or higher recommended)\n* An AWS account with permissions to create EC2 instances, IAM roles, and VPC resources\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```\ngit clone https://github.com/gordonmurray/terraform_aws_deepseek.git\ncd terraform_aws_deepseek\n```\n\n### 2. Initialize Terraform\n\nInitialize the project by downloading provider plugins and setting up the backend.\n\n```\nterraform init\n```\n\n### 3. Configure Variables\n\nEdit the `variables.tf` file or create a terraform.tfvars file to set the following variables:\n\n* aws_region: The AWS region to deploy the resources.\n* instance_type: The EC2 instance type for Deepseek R1.\n\nExample `terraform.tfvars:`\n\n```\naws_region     = \"eu-west-1\"\ninstance_type  = \"g4dn.xlarge\"\n```\n\n### 4. Deploy the Infrastructure\n\n```\nterraform apply\n```\n\nOnce finished, the UI will be available at http://{public_ip_address}:3000\n\nUse Session Manage if you need to connect to the instance.\n\n### 5. Clean Up\n\nTo destroy the infrastructure and avoid unnecessary charges, run:\n\n```\nterraform destroy\n```\n\n\n### Screenshot of the resulting UI\n\n![Ollama AI](images/ollama.png)\n\n\n## Estimated cost\n\n```\n Name                                                    Monthly Qty  Unit   Monthly Cost\n\n aws_instance.deepseek_r1\n ├─ Instance usage (Linux/UNIX, on-demand, g4dn.xlarge)          730  hours       $428.51\n └─ root_block_device\n    └─ Storage (general purpose SSD, gp3)                         50  GB            $4.40\n\n OVERALL TOTAL                                                                   $432.91\n\n*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.\n\n──────────────────────────────────\n17 cloud resources were detected:\n∙ 1 was estimated\n∙ 16 were free\n\n┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓\n┃ Project                                            ┃ Baseline cost ┃ Usage cost* ┃ Total cost ┃\n┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━┫\n┃ main                                               ┃          $433 ┃           - ┃       $433 ┃\n┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━┛\n```\n\n## Tfsec\n\n```\n  results\n  ──────────────────────────────────────────\n  passed               7\n  ignored              0\n  critical             2\n  high                 0\n  medium               1\n  low                  2\n\n  7 passed, 5 potential problem(s) detected.\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonmurray%2Fterraform_aws_deepseek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgordonmurray%2Fterraform_aws_deepseek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonmurray%2Fterraform_aws_deepseek/lists"}