Terraform module to provision a vpc with public and private subnets for each AZ. Provision a internet gateway for public subnets and a NAT gateway for private subnets.
Go to file
flavien 0c04246c4a
continuous-integration/drone/push Build is failing Details
ci(fix): fix ci permissions
2022-09-21 14:07:08 +02:00
.drone.yml ci(fix): fix ci permissions 2022-09-21 14:07:08 +02:00
.gitignore Initial commit 2022-09-21 11:20:43 +02:00
.pre-commit-config.yaml feat(initial release): first version of the module 2022-09-21 11:43:47 +02:00
.releaserc.json ci(fix): fix ci permissions 2022-09-21 14:07:08 +02:00
CHANGELOG.md ci(fix env): fix env from secret for CI 2022-09-21 12:34:38 +02:00
README.md ci(fix): fix ci permissions 2022-09-21 14:07:08 +02:00
main.tf feat(initial release): first version of the module 2022-09-21 11:43:47 +02:00
outputs.tf docs(descriptions): descriptions for variables and outputs 2022-09-21 11:52:08 +02:00
variables.tf ci(fix): fix ci permissions 2022-09-21 14:07:08 +02:00

README.md

aws_network_terraform

Terraform module to provision a vpc with public and private subnets for each AZ. Provision a internet gateway for public subnets and a NAT gateway for private subnets.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_eip.nat resource
aws_internet_gateway.main resource
aws_nat_gateway.nat resource
aws_route_table.private_subnets resource
aws_route_table.public_subnets resource
aws_route_table_association.private_routes resource
aws_route_table_association.public_routes resource
aws_subnet.private_subnets resource
aws_subnet.public_subnets resource
aws_vpc.main resource
aws_availability_zones.available data source

Inputs

Name Description Type Default Required
env environment of the deployment string n/a yes
tags general tags to apply to all the resources map(string) n/a yes
vpc_cidr cidr block of the VPC string "10.0.0.0/16" no

Outputs

Name Description
private_subnets_cidrs cidr block of the created private subnets
private_subnets_ids ids of the created private subnets
public_subnets_cidrs cidr block of the created public subnets
public_subnets_ids ids of the created public subnets
vpc_cidr cidr block of the created VPC
vpc_id id of the created VPC