{"id":14957816,"url":"https://github.com/scholzj/aws-vpc","last_synced_at":"2025-10-24T12:30:56.981Z","repository":{"id":103454171,"uuid":"104677831","full_name":"scholzj/aws-vpc","owner":"scholzj","description":"Terraform configuration for creating s simple Amazon AWS VPC and subnets","archived":false,"fork":false,"pushed_at":"2018-01-27T21:50:35.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T01:11:18.095Z","etag":null,"topics":["aws","aws-vpc","terraform","terraform-configurations"],"latest_commit_sha":null,"homepage":null,"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/scholzj.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":"2017-09-24T21:34:12.000Z","updated_at":"2019-06-20T03:22:52.000Z","dependencies_parsed_at":"2023-07-14T10:16:20.094Z","dependency_job_id":null,"html_url":"https://github.com/scholzj/aws-vpc","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"ce5cc9834bfca58cd8487d0b0e1599fd25ecd455"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholzj%2Faws-vpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholzj%2Faws-vpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholzj%2Faws-vpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholzj%2Faws-vpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scholzj","download_url":"https://codeload.github.com/scholzj/aws-vpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237964493,"owners_count":19394410,"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","aws-vpc","terraform","terraform-configurations"],"created_at":"2024-09-24T13:15:39.544Z","updated_at":"2025-10-24T12:30:56.574Z","avatar_url":"https://github.com/scholzj.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon AWS VPC\n\nThis Terraform configuration creates:\n* Amazon AWS VPC\n* Internet Gateway\n* Subnets in all configured availability zones and routing tables linking them to the Internet Gateway\n\nAdditionally, if variable `private_subnets` is set to true, it will create:\n\n* NAT with Elastic IP address in each availability zone\n* Private subnet in each availability zone with routing tables linking them to the NAT\n\nThis configuration uses my own module from [Terraform Module Registry](https://registry.terraform.io/modules/scholzj/vpc/aws/).\n\n\u003c!-- TOC --\u003e\n\n- [Amazon AWS VPC](#amazon-aws-vpc)\n    - [Prerequisites and dependencies](#prerequisites-and-dependencies)\n    - [Configuration](#configuration)\n    - [Creating the VPC](#creating-the-vpc)\n    - [Deleting the VPC](#deleting-the-vpc)\n\n\u003c!-- /TOC --\u003e\n\n## Prerequisites and dependencies\n\nThere are no other dependencies apart from [Terraform](https://www.terraform.io).\n\n## Configuration\n\n| Option | Explanation | Example |\n|--------|-------------|---------|\n| `aws_region` | AWS region which should be used | `eu-central-1` |\n| `aws_zones` | List of AWS availability zones which should be used | `[\"eu-central-1a\", \"eu-central-1b\"]` |\n| `vpc_name` | Name of the VPC which should ve created | `my-vpc` |\n| `vpc_cidr` | CIDR address which should be used | `10.0.0.0/16` |\n| `tags` | Tags which should be applied to all resources | `{ Hello = \"World\" }` |\n| `private_subnets` | Create also private subnets with NAT in every avaialbility zone | `false` or `true` |\n\n## Creating the VPC\n\nTo create the VPC, \n* Export AWS credentials into environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`\n* Apply Terraform configuration:\n```bash\nterraform init\nterraform apply --var-file example.tfvars\n```\n\n## Deleting the VPC\n\nTo delete the VPC, \n* Export AWS credentials into environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`\n* Destroy Terraform configuration:\n```bash\nterraform destroy --var-file example.tfvars\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscholzj%2Faws-vpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscholzj%2Faws-vpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscholzj%2Faws-vpc/lists"}