{"id":24882802,"url":"https://github.com/benjaminburton/terraform-aws-vpc","last_synced_at":"2026-04-16T12:01:46.345Z","repository":{"id":274807306,"uuid":"924131383","full_name":"BenjaminBurton/terraform-aws-vpc","owner":"BenjaminBurton","description":"VSCode Snippets with Terraform","archived":false,"fork":false,"pushed_at":"2025-01-29T17:15:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T00:48:57.303Z","etag":null,"topics":["aws","terraform","vpc"],"latest_commit_sha":null,"homepage":"https://medium.com/@mrburton/streamlining-my-terraform-journey-with-vscode-snippets-c02953981b46","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenjaminBurton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-29T13:26:04.000Z","updated_at":"2025-01-29T17:15:03.000Z","dependencies_parsed_at":"2025-01-29T18:35:10.682Z","dependency_job_id":null,"html_url":"https://github.com/BenjaminBurton/terraform-aws-vpc","commit_stats":null,"previous_names":["benjaminburton/terraform-boilerplate-snippet","benjaminburton/terraform-aws-vpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenjaminBurton/terraform-aws-vpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminBurton%2Fterraform-aws-vpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminBurton%2Fterraform-aws-vpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminBurton%2Fterraform-aws-vpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminBurton%2Fterraform-aws-vpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminBurton","download_url":"https://codeload.github.com/BenjaminBurton/terraform-aws-vpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminBurton%2Fterraform-aws-vpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","terraform","vpc"],"created_at":"2025-02-01T13:16:22.968Z","updated_at":"2026-04-16T12:01:46.323Z","avatar_url":"https://github.com/BenjaminBurton.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS VPC \u0026 Subnet Setup\n\n## 📌 Overview\n\nThis Terraform configuration sets up a VPC (Virtual Private Cloud) and subnets in AWS. It provides a simple and scalable way to define cloud networking resources without manual configuration.\n\n## 📁 Project Structure\n\n```bash\n/terraform-aws-vpc\n│── main.tf         # Terraform configuration file\n│── terraform.json  # VSCode snippet for quick setup\n│── README.md       # Project documentation\n│── .gitignore      # Ignore Terraform state files\n```\n\n## 🚀 Features\n\n- ✅ Creates an AWS VPC with a custom CIDR block\n- ✅ Deploys multiple subnets in different Availability Zones\n- ✅ Pre-configured Terraform snippet for quick usage in VSCode\n- ✅ Supports manual region selection without using variables\n\n## 🔧 Prerequisites\n\n- Terraform (\u003e= 1.0.0) → Install Terraform\n- AWS CLI (\u003e= 2.0.0) → Install AWS CLI\n- An AWS account with proper IAM permissions\n\n## ⚡ Usage\n\n## 1️⃣ Clone the Repository\n\n```bash\ngit clone https://github.com/BenjaminBurton/Terraform-boilerplate-snippet\ncd Terraform-boilerplate-snippet\n```\n\n## 2️⃣ Initialize Terraform\n\n```bash\nterraform init\n```\n\n## 3️⃣ Preview Changes\n\n```bash\nterraform plan\n```\n\n## 4️⃣ Apply Configuration\n\n```bash\nterraform apply\n```\n\n## 5️⃣ View Outputs (VPC \u0026 Subnet IDs)\n\n```bash\nterraform output\n```\n\n## 📜 Terraform Configuration (main.tf) Basic\n\n```bash\nterraform {\n  required_providers {\n    aws = {\n      source  = \"hashicorp/aws\"\n      version = \"~\u003e 1.0.4\"\n    }\n  }\n}\n\nprovider \"aws\" {\n  region = \"us-east-1\"\n}\n\nresource \"aws_vpc\" \"main\" {\n  cidr_block = \"10.1.0.0/16\"\n}\n\nresource \"aws_subnet\" \"subnet_a\" {\n  availability_zone = \"us-east-1a\"\n  vpc_id           = aws_vpc.main.id\n  cidr_block       = \"10.1.1.0/24\"\n}\n\nresource \"aws_subnet\" \"subnet_b\" {\n  availability_zone = \"us-east-1b\"\n  vpc_id           = aws_vpc.main.id\n  cidr_block       = \"10.1.2.0/24\"\n}\n```\n\n## 🛠 VSCode Terraform Snippet (terraform.json)\n\nThe json file is for your snippets, but if you want to use a simple network topology from the example shown in the terraform docs [HERE](https://developer.hashicorp.com/terraform/language) then you can find that example in the variables.tf file for your convenience.\n\n## 🛑 Cleanup\n\nTo delete all resources, run:\n\n```bash\nterraform destroy\n```\n\n## 📌 Notes\n\n- Adjust the region and CIDR blocks if needed.\n- Use terraform plan to preview changes before applying them.\n- Consider using Terraform variables for flexibility in production environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminburton%2Fterraform-aws-vpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminburton%2Fterraform-aws-vpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminburton%2Fterraform-aws-vpc/lists"}