{"id":24630682,"url":"https://github.com/erwan-simon/aws-network-stack","last_synced_at":"2026-05-16T20:36:10.985Z","repository":{"id":272262207,"uuid":"916011901","full_name":"erwan-simon/aws-network-stack","owner":"erwan-simon","description":"Terraform stack allowing you to deploy a full network stack on AWS, including public, private and intra subnets with Internet and NAT gateways.","archived":false,"fork":false,"pushed_at":"2025-01-13T09:39:45.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T07:12:30.101Z","etag":null,"topics":["aws","internet-gateway","nat-gateway","network","subnet","terraform","vpc"],"latest_commit_sha":null,"homepage":"","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/erwan-simon.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":"2025-01-13T09:37:32.000Z","updated_at":"2025-01-13T09:41:07.000Z","dependencies_parsed_at":"2025-01-13T10:35:14.019Z","dependency_job_id":"f073a2f0-34c3-44b4-93c0-c027d720308d","html_url":"https://github.com/erwan-simon/aws-network-stack","commit_stats":null,"previous_names":["erwan-simon/aws-network-stack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwan-simon%2Faws-network-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwan-simon%2Faws-network-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwan-simon%2Faws-network-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erwan-simon%2Faws-network-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erwan-simon","download_url":"https://codeload.github.com/erwan-simon/aws-network-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560388,"owners_count":20472218,"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","internet-gateway","nat-gateway","network","subnet","terraform","vpc"],"created_at":"2025-01-25T07:12:37.500Z","updated_at":"2026-05-16T20:36:05.961Z","avatar_url":"https://github.com/erwan-simon.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Network Stack\n\nThis Terraform stack creates the network configuration needed for your day to day cloud projects.\n\n**WARNING: some elements of this stack COST MONEY as long as they are deployed, do not forget to destroy them when not needed. See dedicated chapter in this documentation**\n\n## Prerequisites\n\n* Terraform (tested with version `v1.5.7`)\n\n## General presentation\n\nThis configuration is composed of multiple elements :\n\n- a VPC\n- 3 groups of subnets :\n  - public subnets : which cas be accessed from internet (resources created in this subnet by default are affected with a public IP address) and can access internet (with the Internet Gateway created in those subnets)\n  - private subnets : which can access internet using the NAT Gateway created in the public subnet but cannot be accessed from the internet (resources in it are not created with a public IP address by default)\n  - intra subnets : resources created in this subnet cannot access internet and cannot be accessed from the internet\n- an Internet Gateway : resource allowing the public and private subnets to have access to the internet\n- a NAT Gateway : resource located in the public subnet allowing the private subnets to have access to the internet\n\nThis repository creates by default only one NAT Gateway and only one private subnet, you can add more private subnet by uncommenting the relevant CIDR in the [terraform/variables.tf](terraform/variables.tf) file.\n\n## Deployment\n\n```bash\ncd terraform\nterraform init\nterraform workspace new prod\nterraform apply\n```\n\n## Destroy resources that cost money\n\nYou can destroy the NAT gateway and the Elastic IP when you are not using the Internet Egress capabilities of the private subnets of this network stack.\n\n```bash\ncd terraform\nterraform init\nterraform workspace select prod\nterraform destroy -target aws_nat_gateway.instances -target aws_eip.nat_eips\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwan-simon%2Faws-network-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferwan-simon%2Faws-network-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferwan-simon%2Faws-network-stack/lists"}