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 Henrion 7c8593c3c1
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
fix(CI): update
2023-11-16 14:08:48 +01:00
.drone.yml fix(CI): update 2023-11-16 14:08:48 +01: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
.python-version fix(CI): update 2023-11-16 14:08:48 +01:00
.releaserc.json ci(fix): fix ci permissions 2022-09-21 14:07:08 +02:00
README.md fix(modules urls): fix modules urls 2022-09-21 15:20:43 +02:00
main.tf fix(deprecation): deprecated property for aws_eip 2023-11-16 14:02:26 +01:00
outputs.tf docs(fix variables): tags are not required 2022-09-21 14:55:37 +02:00
variables.tf docs(fix variables): tags are not required 2022-09-21 14:55:37 +02:00

README.md

aws_network terraform module

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.
Subnets are tagged with key "Tier" and value "public" or "private".
To launch instances use: aws_servers_module

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) {} no
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 blocks of the created public subnets
public_subnets_ids Ids of the created public subnets
vpc_cidr Cidr blocks of the created VPC
vpc_id Id of the created VPC