{"id":21213985,"url":"https://github.com/cruxstack/terraform-aws-vpc-network","last_synced_at":"2026-04-11T08:39:00.089Z","repository":{"id":184900595,"uuid":"672658722","full_name":"cruxstack/terraform-aws-vpc-network","owner":"cruxstack","description":"Terraform Module to deploy a VPC network.","archived":false,"fork":false,"pushed_at":"2023-08-12T11:46:11.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T23:15:26.345Z","etag":null,"topics":["aws","cloudposse","subnet","subnets","sweetops","terraform","terraform-module","vpc","vpc-endpoints","vpc-flow-logs","vpc-privatelink"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/cruxstack/vpc-network/aws/latest","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/cruxstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-07-30T20:31:47.000Z","updated_at":"2023-08-16T13:35:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a8347ca-64a3-4738-a439-d9910de296d3","html_url":"https://github.com/cruxstack/terraform-aws-vpc-network","commit_stats":null,"previous_names":["cruxstack/terraform-aws-vpc-network"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cruxstack/terraform-aws-vpc-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-aws-vpc-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-aws-vpc-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-aws-vpc-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-aws-vpc-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruxstack","download_url":"https://codeload.github.com/cruxstack/terraform-aws-vpc-network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-aws-vpc-network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31674624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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","cloudposse","subnet","subnets","sweetops","terraform","terraform-module","vpc","vpc-endpoints","vpc-flow-logs","vpc-privatelink"],"created_at":"2024-11-20T21:25:23.342Z","updated_at":"2026-04-11T08:39:00.049Z","avatar_url":"https://github.com/cruxstack.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module: AWS VPC Network\n\nThis Terraform module deploys a complete Virtual Private Cloud (VPC) network on\nAWS with sensible defaults. It creates a VPC, public and private subnets, a NAT\ngateway, VPC flow logs, and optional VPC endpoints.\n\n## Usage\n\n```hcl\nmodule \"vpc_network\" {\n  source  = \"cruxstack/vpc-network/aws\"\n  version = \"x.x.x\"\n\n  vpc_ipv4_cidr             = \"10.0.0.0/16\"\n  availability_zones        = [\"us-west-2a\", \"us-west-2b\", \"us-west-2c\"]\n  vpc_flow_logs_destination = \"your-flowlogs-bucket\"\n}\n```\n\n## Inputs\n\nIn addition to the variables documented below, this module includes several\nother optional variables (e.g., `name`, `tags`, etc.) provided by the\n`cloudposse/label/null` module. Please refer to its [documentation](https://registry.terraform.io/modules/cloudposse/label/null/latest)\nfor more details on these variables.\n\n| Name                                | Description                                                                                                                      | Type         | Default   | Required |\n|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|--------------|-----------|----------|\n| `availability_zone_ids`             | List of AZ IDs for subnet creation. Overrides `availability_zones`.                                                              | list(string) | []        | No       |\n| `availability_zones`                | List of Availability Zones (AZs) for subnet creation. Ignored if `availability_zone_ids` is set.                                 | list(string) | []        | No       |\n| `aws_account_id`                    | AWS account ID.                                                                                                                  | string       | \"\"        | No       |\n| `aws_region_name`                   | AWS Region.                                                                                                                      | string       | \"\"        | No       |\n| `nat_aws_shield_protection_enabled` | Toggle for AWS Shield Advanced protection for NAT EIPs. An active AWS Shield Advanced subscription is required if set to 'true'. | bool         | false     | No       |\n| `nat_instance_size`                 | Size of the NAT instance. Only used if `nat_type` is set to `instance`.                                                          | string       | \"t3.nano\" | No       |\n| `nat_type`                          | Type of NAT to create. Can be `gateway` or `instance`.                                                                           | string       | \"gateway\" | No       |\n| `private_subnets_extra_tags`        | Extra tags for NAT subnets.                                                                                                      | map(string)  | {}        | No       |\n| `privatelink_gateway_endpoints`     | List of Gateway VPC Endpoints for the VPC. Can only be `dynamodb` and `s3`.                                                      | set(string)  | []        | No       |\n| `privatelink_vpc_endpoints`         | List of Interface VPC Endpoints for the VPC.                                                                                     | set(string)  | []        | No       |\n| `public_subnets_auto_assign_ip`     | Toggle for assigning a public IP address to instances in a public subnet.                                                        | bool         | true      | No       |\n| `public_subnets_enabled`            | Toggle for creating public subnets. If false, public subnets won't be created.                                                   | bool         | true      | No       |\n| `public_subnets_extra_tags`         | Extra tags for public subnets.                                                                                                   | map(string)  | {}        | No       |\n| `subnet_ipv4_cidrs`                 | List of CIDRs for subnets. Must maintain order.                                                                                  | list(object) | []        | No       |\n| `subnet_max_count`                  | Maximum number of subnets to deploy. `0` deploys a subnet for each availability zone.                                            | number       | 0         | No       |\n| `vpc_flow_logs_destination`         | ARN of the logging destination.                                                                                                  | string       | \"\"        | No       |\n| `vpc_flow_logs_destination_type`    | Type of the logging destination. Can be `cloud-watch-logs` or `s3`.                                                              | string       | \"s3\"      | No       |\n| `vpc_flow_logs_enabled`             | Toggle for VPC Flow Logs.                                                                                                        | bool         | true      | No       |\n| `vpc_flow_logs_traffic_type`        | Type of traffic to capture. Can be `ACCEPT`, `REJECT`, or `ALL`.                                                                 | string       | \"ALL\"     | No       |\n| `vpc_ipv4_cidr`                     | Primary IPv4 CIDR block for the VPC.                                                                                             | string       | None      | Yes      |\n| `vpc_ipv6_cidr_auto_assigned`       | Toggle for assigning AWS generated IPv6 CIDR block to the VPC.                                                                   | bool         | false     | No       |\n\n## Outputs\n\n| Name                            | Description                                                  |\n|---------------------------------|--------------------------------------------------------------|\n| `availability_zones`            | List of Availability Zones where subnets were created.       |\n| `az_private_subnets_map`        | Map of AZ names to list of private subnet IDs in the AZs.    |\n| `az_public_subnets_map`         | Map of AZ names to list of public subnet IDs in the AZs.     |\n| `nat_eip_protections`           | List of AWS Shield Advanced Protections for NAT Elastic IPs. |\n| `nat_gateway_public_ips`        | Public IPs of the NAT Gateways.                              |\n| `nat_ids`                       | IDs of the NAT Gateways.                                     |\n| `private_cidr_blocks`           | CIDRs of the private subnets.                                |\n| `private_route_table_ids`       | IDs of the private subnet route tables.                      |\n| `private_subnet_cidrs`          | CIDRs of the private subnets.                                |\n| `private_subnet_ids`            | IDs of the private subnets.                                  |\n| `public_route_table_ids`        | IDs of the public subnet route tables.                       |\n| `public_subnet_cidrs`           | CIDRs of the public subnets.                                 |\n| `public_subnet_ids`             | IDs of the public subnets.                                   |\n| `vpc_default_network_acl_id`    | ID of the default network ACL created on VPC creation.       |\n| `vpc_default_security_group_id` | ID of the default security group created on VPC creation.    |\n| `vpc_id`                        | ID of the VPC.                                               |\n| `vpc_ipv4_cidr`                 | CIDR of the VPC.                                             |\n\n## Contributing\n\nWe welcome contributions to this project. For information on setting up a\ndevelopment environment and how to make a contribution, see [CONTRIBUTING](./CONTRIBUTING.md)\ndocumentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxstack%2Fterraform-aws-vpc-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruxstack%2Fterraform-aws-vpc-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxstack%2Fterraform-aws-vpc-network/lists"}