https://github.com/maxgio92/terraform-aws-vpc
Terraform module that manages AWS VPC
https://github.com/maxgio92/terraform-aws-vpc
Last synced: 16 days ago
JSON representation
Terraform module that manages AWS VPC
- Host: GitHub
- URL: https://github.com/maxgio92/terraform-aws-vpc
- Owner: maxgio92
- License: mit
- Created: 2019-06-12T08:39:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-10T09:22:22.000Z (almost 7 years ago)
- Last Synced: 2025-07-08T19:03:02.183Z (11 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## terraform-aws-vpc
Terraform module that manages AWS VPC.
This module creates:
- VPC
- Subnets (public and private)
- Route tables
- Internet gateway
- NAT gateway (with EIP)
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| default\_tags | The default tags to apply to the resoures of the VPC | map | `` | no |
| enable\_dns\_hostnames | A boolean flag to enable/disable DNS hostnames in the VPC. Defaults true. | string | `"true"` | no |
| prefix\_name | The prefix name for the resources of the VPC | string | `"my"` | no |
| private\_subnet\_count | How much private subnets to create | string | `"2"` | no |
| private\_subnet\_mask\_newbits | The number of bits of the private subnet mask to add to the ones of the VPC's subnet mask. E.g: VPC's CIDR block: 10.0.0.0/8 (8 bits subnet mask); private subnet's CIDR block: 10.0.0.0/16 (16 bits subnet mask, 8 new bits). | string | `"8"` | no |
| public\_subnet\_count | How much public subnets to create | string | `"2"` | no |
| public\_subnet\_mask\_newbits | The number of bits of the public subnet mask to add to the ones of the VPC's subnet mask. E.g: VPC's CIDR block: 10.0.0.0/8 (8 bits subnet mask); private subnet's CIDR block: 10.0.0.0/16 (16 bits subnet mask, 8 new bits). | string | `"8"` | no |
| vpc\_cidr | The CIDR block of the VPC | string | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| private\_subnet\_ids | |
| public\_subnet\_ids | |
| vpc\_id | |